Converting Numbers

Hexadecimal to Decimal

Figure D-3. Hexadecimal to Decimal Conversion

Placeholder

...

4096

256

 

16

 

1

 

 

 

 

values

 

 

 

 

 

 

Hexadecimal number

...

B

 

A

 

1

 

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

* 1

=

0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 * 16

 

 

=

16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10 * 256

 

 

 

 

= 2560

 

 

 

 

 

 

 

 

 

 

 

 

 

= 45056

 

 

11 * 4096

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

47632

CDT 609.CDD

1.Take the rightmost hexadecimal digit and multiply it by the rightmost placeholder value.

2.Moving to the left, take the next hexadecimal digit and multiply it by the next placeholder value. Continue to do this until the hexadecimal number has been exhausted. Convert the hexadecimal digits A and B to their decimal values 10 and 11 before multiplying.

3.Add the multiplied values together. The result is:

Hexadecimal Value

Decimal Value

%HBA10

47632

HP Integrity NonStop NS-Series Operations Guide529869-005

D-6

Page 248
Image 248
HP NonStop NS manual Figure D-3. Hexadecimal to Decimal Conversion, Hexadecimal Value Decimal Value HBA10 47632