NonStop NS-Series Operations Guide (H06.12+)

Figure D-1 Binary to Decimal Conversion
1. Take the rightmost binary digit and multiply it by the rightmost placeholder value.
2. Moving to the left, take the next binary digit and multiply it by the next placeholder value.
Continue to do this until the binary number has been exhausted.
3. Add the multiplied values together. The result is:
Decimal ValueBinary Value
27%B11011
Octal to Decimal
To convert an octal number to a decimal number:
1. Starting from the right, multiply the least significant (rightmost) octal digit by the first
placeholder value. Moving towards the left, multiply each new octal digit by its corresponding
placeholder value until the octal number is exhausted.
To establish placeholder values, the first placeholder value on the far right is 1. Then for
each new placeholder value to the left, multiply the value to the right by 8.
2. Add the results of the multiplications in Step 1.
Example
Convert the octal value 1375 to its decimal equivalent. (In this example, the symbol “*” indicates
multiplication.) Refer to Figure D-2 (page 207).
206 Converting Numbers