NonStop Operations Guide for H-Series and J-Series RVUs
Example
Convert the hexadecimal value BA10 to its decimal equivalent. (In this example, the symbol “*”
indicates multiplication.) Refer to Figure 19 (page 235).
Figure 19 Hexadecimal to Decimal Conversion
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:
Decimal ValueHexadecimal Value
47632%HBA10
Decimal to Binary
To convert a decimal number to a binary number:
1. Divide the decimal number by 2. The remainder of this first division becomes the least significant
(rightmost) digit of the binary value.
2. Divide the quotient from Step 1 by 2, and use the remainder of the next division as the next
digit (to the left) of the binary value. Continue to divide the quotients by 2 until the decimal
number is exhausted. The remainder from the last division is the most significant (leftmost) digit
of the binary value.
Example
Convert the decimal value 354 to its binary equivalent. (In this example, the symbol “/” indicates
division.)
RemainderQuotientDivisionStep
remainder = least
significant
(rightmost) digit
0177=354/21.
188=177/22.
Decimal to Binary 235










