Conve'rsion Table: Hexadecimal and Decimal Integers
HALFWORD
BYTE BYTEBITS: 0123 4567 0123 4567 Hex Decimal Hex Decimal Hex Decimal Hex Decimal e-f--- ° Q- _9 ° ° ° ° ° 1 268 , 435 , 456 1 16,777,216 I 1,0482 76 1 65,536
253i>;870,912 2 33,554,432 2 2,097,152 2 131,072 3 i{05 ,306 , 368 3 50,331,648 3 3,145,728 3 196,608 4 1.073 741 4 67,108,864 4 4.194,:104 4 262,144 5 1,3.42,177,280 5 83,886,080 5 5,242,880 5 327,680 6 1,610,612,736 6 100,663,296 6 6,291,456 6 393,216
71,879,048,192 7 117,440,512 7 7,340,032 7 458,752 8 2,1,47,483,648 8 134,217,728 8 8,388,608 8 524 288
92,4f5,919,104 9 150,994,944 9 9,437,184 9 589 824
A 2,684,354,560 A 167,772 160 A10,485,760 A 655,360 016 B 184 549 376 B 11 534 336 B 720.896 C 3 2:?h 225 472 C 201.326 592 C 12.582 912 C 786.432
0 34139,660£928 0 218 103 808 0 13 631 488 0 851 968
E3,758,096,384 E 234,881,024 E 14,680,064 E 917,504 F ,s;ro F ! 251 ,658,240 F 15,728,640 F 983,040 f-- 8 7 6 5 TO CON\'ERT HEXADECIMAL TO DECIMAL EXAMPLE
1. the column of decimal corresponding to of
the left-most digit or letter of the hexadecimal; selectHexadecimal Value from this column and record the number that corresponds ta the position of the hexadecimal digit or letter. 1. 0
2. Repeat step 1 for the next (second from the left)
2. 3
positi(m.
3. Repeat stepI for the units (third from the left) 3. 4 pasition.
4. Add the selected from the table to form the
4. Decimaldecimal number. TO CONVERT DECIMAL TO HEXADECIMAL EXAMPLE
1. (a) from the table the highest decimal number of
that isequal to or less than the number to be COOl- Decimal Value verted.
(b)Record the hexodecimal of the column containing I. 0
the selected number.
(c) Subtract theselected decimal from the number to
be converted.
2. 3
2.Using the remainder from step I (c) repeat all of step I to the second position of the hexadecimal
(and a remainder) . 3.4 3. Using l:he remainder from step 2 repeat all of step 1 to
4.Hexadecimal develop the units position of the hexodecimal.
4.Combine terms to form the hexodecimal number. POWERS OF 16 TABLE
Example: 268,435,456
10
= (2.68435456 x10
8
)10 = 1000 0000
1
6 = (10
7
)16 16
nI 0 16 I 256 2
4096 3
65 536 4I 048 576 5
16 777 216 6
268 435456 7
4 294 967 296 8
68 719 476 736 9I 099 511 627 776 10 = A
17592186044 416 II = B
281 474 976710 656 12 = C 4 503 599 627 370 496 13 = 0
72057 594 037 927 936 14 = E _5o_4 /= F
DecimalValues 284 System/370 Principles of Operation
Hex° 1
2
34 5
6
7
8
9
A
BC 0
E
F034 3328 48 4 3380 3380 -3328 --s2 4 -4 034
HALFWORD
BYTE BYTE0123 4567 0123 4567 Decimal Hex Decimal Hex Decimal Hex Decimal ° ° ° ° ° ° ° 4,096 I 256 I 16 1 1
8,192 2 512 2 32 2 212,288 3 768 3 48 3 3
163844 1.024 4 64 4 4 20,480 5 1,280 5 80 5 5
24,576 61;530 6 96 6 6
28 672 7 1,792 7 112 7 7
32,768 8 2048 8 128 8 8
36,864 9 9 144 9 9 40,960 A 2,560 A 160 A 10 45,056 B 2 816 B 176 B 11
49 152C 3072 C 192 C 12
53,248 0 3 328 0208 0 13 57,344 E 3,584 E 224 E 14 61,440 F 3,840 F 240 F 15 4 3 2 1
To convert integer greater than the capacity of table, use the techniques below: HEXADECIMAL TO DECIMAL Successive cumulative multiplication from left to right,
adding units position.
Example: 034
16
= 338010DECIMAL TO HEXADECIMAL 0= 13 ..1S.J.§.. 208 3 = + 3 2IT x16
33764= +4 3380
Divide andcollect the remainder in reverse order.
Example:3380
10 = X
16
1613380 remainder
164 1
16LIL----=: 3
o3380 10= D34J'6
HALFWORD
BYTE BYTE
2
7
9
A 2,684,354,560 A 167,772 160 A
0 3
E
1.
the left-most digit or letter of the hexadecimal; select
2. Repeat step 1 for the next (second from the left)
2. 3
positi(m.
3. Repeat step
4. Add the
4. Decimal
1. (a)
that is
(b)
the se
(c) Subtract the
be converted.
2. 3
2.
(and a remainder) . 3.
4.
4.
Example: 268,435,456
10
= (2.68435456 x
8
)10
1
6
7
)16
n
4
65 536 4
16 777 216 6
268 435
4 294 967 296 8
68 719 476 736 9
17592
281 474 976
72
Decimal
Hex
2
3
6
7
8
9
A
B
E
F
HALFWORD
BYTE BYTE
8,192 2 512 2 32 2 2
16384
24,576 6
28 672 7 1,792 7 112 7 7
32,768 8 2
36,864 9
49 152
53,248 0 3 328 0
To convert integer
adding units position.
Example: 034
16
= 338010
3376
Divide and
Example:
10
16
16
16
16
o