EasyManua.ls Logo

HP NonStop NS-series

HP NonStop NS-series
266 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Converting Numbers
HP Integrity NonStop NS-Series Operations Guide529869-005
D-9
Decimal to Hexadecimal
Decimal to Hexadecimal
To convert a decimal number to a hexadecimal number:
1. Divide the decimal number by 16. The remainder of this first division becomes the
least significant (rightmost) digit of the hexadecimal value. If the remainder
exceeds 9, convert the 2-digit remainder to its hexadecimal letter equivalent. Use
this table for conversion.
2. Divide the quotient from Step 1 by 16, and use the remainder of this next division
as the next digit (to the left) of the hexadecimal value (converting 2-digit
remainders as necessary). Continue to divide the quotients by 16 until the decimal
number is exhausted. The remainder from the last division is the most significant
(leftmost) digit of the hexadecimal value.
Example
Convert the decimal value 47632 to its hexadecimal equivalent. (In this example, the
symbol “/” indicates division.)
The result is:
Decimal Hexadecimal
10 A
11 B
12 C
13 D
14 E
15 F
Step Division Quotient Remainder
1. 47632/16 = 2977 0 remainder = least significant
(rightmost) digit
2. 2977/16 = 186 1
3. 186/16 = 11 10 = A
4. 11/16 = 0 11 = B remainder = most significant (leftmost)
digit
Decimal Value Hexadecimal Value
47632 %HBA10

Table of Contents

Related product manuals