Computer Logical Organization 简明教程

Hexadecimal Arithmetic

Hexadecimal Number System

十六进制数的特性如下:

Following are the characteristics of a hexadecimal number system.

  1. Uses 10 digits and 6 letters, 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F.

  2. Letters represents numbers starting from 10. A = 10, B = 11, C = 12, D = 13, E = 14, F = 15.

  3. Also called base 16 number system.

  4. Each position in a hexadecimal number represents a 0 power of the base (16). Example − 160

  5. Last position in a hexadecimal number represents an x power of the base (16). Example − 16x where x represents the last position - 1.

Example

十六进制数 - 19FDE16

Hexadecimal Number − 19FDE16

计算十进制当量 −

Calculating Decimal Equivalent −

Step

Hexadecimal Number

Decimal Number

Step 1

19FDE16

1 × 164) + (9 × 163) + (F × 162) + (D × 161) + (E × 16010

Step 2

19FDE16

1 × 164) + (9 × 163) + (15 × 162) + (13 × 161) + (14 × 16010

Step 3

19FDE16

(65536 + 36864 + 3840 + 208 + 14)10

Step 4

19FDE16

10646210

Note − 19FDE16 通常写为 19FDE。

Note − 19FDE16 is normally written as 19FDE.

Hexadecimal Addition

下面的十六进制加法表将帮助你高效地处理十六进制加法。

Following hexadecimal addition table will help you greatly to handle Hexadecimal addition.

hexadecimal addition table

使用此表格,只需遵循此示例中的步骤 - 加 A16 和 516。在 X 列中找到 A,然后在 Y 列中找到 5。这两个列相交的“求和”区域中的点就是两个数字的和。

To use this table, simply follow the directions used in this example − Add A16 and 516. Locate A in the X column then locate the 5 in the Y column. The point in 'sum' area where these two columns intersect is the sum of two numbers.

A16 + 516 = F16.

Example − Addition

hexadecimal addition example

Hexadecimal Subtraction

十六进制数减法遵循与任何其他数制中数字减法相同的规则。唯一变数在于借位。在十进制系统中,借位是成组的 1010。在二进制系统中,借位是成组的 210。在十六进制系统中,借位是成组的 1610。

The subtraction of hexadecimal numbers follow the same rules as the subtraction of numbers in any other number system. The only variation is in borrowed number. In the decimal system, you borrow a group of 1010. In the binary system, you borrow a group of 210. In the hexadecimal system you borrow a group of 1610.

Example - Subtraction

hexadecmal substraction example