Hexadecimal And Decimal Conversion - IBM System/32 Introduction And Maintenance Manual

Table of Contents

Advertisement

Hexadecimal and Decimal Conversion
Hexadecimal Columns
6
5
4
3
Hex
=
Dec
Hex
=
Dec
Hex
=
Dec
Hex
=
Dec
°
° °
° ° ° ° °
1
1,048,576
1
65,536
1
4,096
1
256
2
2,097,152
2 131,072
2
8,192
2
512
3
3,145,728
3 196,608
3 12,288
3
768
4
4,194,304
4 262,144
4 16,384
4 1,024
5
5,242,880
5 327,680
5 20,480
5 1,280
6
6,291,456
6 393,216
6 24,576
6 1,536
7
7,340,032
7 458,752
7 28,672
7 1,792
8
8,388,608
8 524,288
8 32,768
8 2,048
9
9,437,184
9 589,824
9 36,864
9 2,304
A 10,485,760
A 655,360
A 40,960
A 2,560
B 11,534,336
B 720,896
B 45,056
B 2,816
C
12,582,912
C
786,432
C
49,152
C
3,072
D
13,631,488
D
851,968
D
53,248
D
3,328
E 14,680,064
E 917,504
E 57,344
E 3,584
F 15,728,640
F 983,040
F 61,440
F 3,840
0123
4567
0123
4567
Byte
Byte
2
1
Hex
=
Dec
Hex
=
Dec
° °
0
°
1
16
1
1
2
32
2
2
3
48
3
3
4
64
4
4
5
80
5
5
6
96
6
6
7 112
7
7
8 128
8
8
9 144
9
9
A 160
A 10
B 176
B 11
C
192
C
12
D
208
D
13
E 224
E 14
F 240
F 15
0123
4567
Byte
A-2
From hexadecimal to decimal:
Locate each hexa-
decimal digit in its corresponding column position
and note the decimal equivalents. Add these to
obtain the decimal value.
Example:
Hexadecimal Value
Columns
43
21
3
°
C F
Decimal Equivalent
15
192
°
I'
I
1 - . . ' - - - - : -
"'------:
I-..---------~
12,288
12,495
From decimal to hexadecimal:
(1) Locate the
largest decimal value in the table that will fit
into the decimal number to be converted, and
(2) note its hexadecimal equivalent and hexa-
decimal column position. (3) Find the decimal
remainder. Repeat the process on this and subse-
quent remainders.
Example:
Decimal Value
19,367
Hexadecimal Equivalent
Columns
43
21
(1 )
16,384 - ( 2 ) - - 4
(3)
2,983
i
2,816
• I
B
167
I
I
160
II
A
7
• I
I
I
7
",tt
!
4B
A7

Advertisement

Table of Contents
loading

Table of Contents