Conve'rsion Table: Hexadecimal and Decimal Integers
HALFWORD
BYTE BYTE BITS: 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
2 53i>;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
7 1,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
9 2,4f5,919,104 9 150,994,944 9 9,437,184 9 589 824
A 2,684,354,560 A 167,772 160 A 10,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 3 4139,660£928 0 218 103 808 0 13 631 488 0 851 968
E 3,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; select Hexadecimal 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 step I for the units (third from the left) 3. 4 pasition.
4. Add the selected from the table to form the
4. Decimal decimal number. TO CONVERT DECIMAL TO HEXADECIMAL EXAMPLE
1. (a) from the table the highest decimal number of
that is equal to or less than the number to be COOl- Decimal Value verted.
(b) Record the hexodecimal of the column containing I. 0
the se lected number.
(c) Subtract the selected 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 x 10
8
)10
= 1000 0000
1
6
= (10
7
)16
16
n I 0 16 I 256 2
4 096 3
65 536 4 I 048 576 5
16 777 216 6
268 435 456 7
4 294 967 296 8
68 719 476 736 9 I 099 511 627 776 10 = A
17592 186044 416 II = B
281 474 976 710 656 12 = C 4 503 599 627 370 496 13 = 0
72 057 594 037 927 936 14 = E _5o_4 /= F
Decimal Values 284 System/370 Principles of Operation
Hex ° 1
2
3 4 5
6
7
8
9
A
B C 0
E
F 034 3328 48 4 3380 3380 -3328 --s2 4 -4 034
HALFWORD
BYTE BYTE 0123 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 2 12,288 3 768 3 48 3 3
16384 4 1.024 4 64 4 4 20,480 5 1,280 5 80 5 5
24,576 6 1;530 6 96 6 6
28 672 7 1,792 7 112 7 7
32,768 8 2 048 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 152 C 3072 C 192 C 12
53,248 0 3 328 0 208 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
= 338010 DECIMAL TO HEXADECIMAL 0= 13 ..1S.J.§.. 208 3 = + 3 2IT x16
3376 4= +4 3380
Divide and collect the remainder in reverse order.
Example: 3380
10
= X
16
16 13380 remainder
16 4 1
16 LIL----=: 3
o 3380 10= D34J'6
Conversion Table: Hexadecimal and Decimal Fractions
HALFWORD 1- _____ ____ _4------------___,r__.-....:B::..:Y:....;T..::E---.- __ .... ____ . _____ -I BITS 0123 4567 0123 4567 ------ - ----- .. - I--_H_ex-+_D_ec_i_m_a_1 +-H_e_x-t- ___ D_e_c_im_a_1 _-f_H_e_x---+ _____ D_e_c_im_a_I __ _____1I__.-H-e-x-f---.--.- ___ ... . 0 .0000 .00 .0000 0000 .000 .0000 0000 0000 .0000 .0000 0000 0000 0000 1----'-'. 1=--+--'-'. 0--='6
7
25:"-+--'-'.
0--=.1--+-.--=.00-=-3;..:9=-----=0--=.6
7
25=----1f---.:.-=-00=--=1'---1-------.:.-=-00::..::0=-=2---=-44.::..:1=-=4---=-06=--=2=-=-5-1---:":.
-- --])000 - -'·1525"--- 8789-- 0625--- .2 . 1250 .02 .0078 1250 .002 .0004 8828 1250 .0002 .0000 3051 7578 1250 1---'-::. 3.--f--.-;-1""87""5:--1--. M
03
.---i--'-;.
0""'"1 =17::.------;1-;;;87;..5=-+---'-. - 4517 --- 6367-1875---- .4 .2500 .04 .0156 2500 .004 .0009 7656 2500 .0004 .0000 - --61 03 5156 2500 I--=--':. -t--.:,;. :,. -- - 7629 --'3945- - -3ill-- - .6 .3750 .06 .0234 3750 .006 .0014 6484 3750 .0006 .0000 -9155- .-- 2734 3750 1---'-::,7;--1----'.-"-:4;:;;37:;-;:5:--1--. 0;;-;7;;-t--,-;. .0001 . 068-1 - "f5234375 1-':';:. - 22@----03f2 5000---' 1--'--':' -+-----,--,,' 09::.,-+---,-. 0"",3'-"'.5-:,-1 _--=5"="62,=,,5,-+---,-,, __ --...!.:' .- 3732 ----9101 5625-'--'- -
.A .6250 .OA .0390 6250 .00A .0024 4140 6250 .000A .0001--- 6250 1__':':' 1 = _ _ =: :}875=- .C .7500 .OC .0468 7500 .00C .0029 2968 7500 .OOOC .0001 8310 5468 7500 .D .8125 .00 .0507 8125 .OOD .0031 7382 8125 .OOOD - :0001 9836--- 4257 .E .8750 .OE .0546 8750 .OOE .0034 -- --- -i362-- 3046- .. 1--=. F'---f---'.=9"-'37=-=5-1----'-. O=F'---4--'-'. 0:.::5....:.:85"--'------"9:.:..:37"-'5'---4----'-. oo=F-+-- .0036 6210 9375 .000F· - :0002 -:r88S--' - TS3S- - 9375--- -. --.-------------- .. _- __ ______ ______ ______ ____________ __ ________ ______________ . ___ 4 _________________ TO CONVERT .ABC HEXADECIMAL TO DECIMAL Find.A in position 1
Find .OB in position 2
.6250 .0429 6875
Find .OOC in position 3 .0029 2968 7500
. ABC Hex is equal to .6708 9843 7500 TO CONVERT .13 DECIMAL TO HEXADECIMAL 1. Find .1250 next lowest to .1300 subtract -.1250
2. Find .0039 0625 next lowest to .0050 0000 -.0039 0625 3. Find .0009 7656 2500 . 00109375 0000 -.0009 7656 2500 4. Find .0001 0681 1523 4375 .0001 1718 7500 0000 = .2Hex
= .01 = .004 -.0001 0681 1523 4375 = .0007 .0000 1037 5976 5625 = .2147Hex
5 .. 13 Decimal is approximately equal to -----------..:.1. To convert fractions beyond the capacity of table, use techniques below: HEXADECIMAL FRACTION TO DECIMAL Convert the hexadecimal fraction to its decimal equivalent using the same
technique as for integer numbers. Divide the results by 16
n
(n is the
number of fraction positions) . Example: .8A7 = .54077110 8A7
1
6 = 221510
.540771
16
3 = 4096 409612215 .000000 DECIMAL FRACTION TO HEXADECIMAL Collect integer ports of product in the order of calculation . Example: .540810 = .8A716 .5408 1
8
...- A"'- 7 ...... x16 1].6528 x16 [QJ.4448 x16 111·1168 Appendix G. Hexadecimal Tables 285
Previous Page Next Page