HP (Hewlett-Packard) NS-series Network Card User Manual


 
Converting Numbers
HP Integrity NonStop NS-Series Operations Guide—529869-005
D-4
Octal to Decimal
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.
1. Take the rightmost octal digit and multiply it by the rightmost placeholder value.
2. Moving to the left, take the next octal digit and multiply it by the next placeholder
value. Continue to do this until the octal number has been exhausted.
3. Add the multiplied values together. The result is:
Figure D-2. Octal to Decimal Conversion
Octal Value Decimal Value
%1375 765
608CDT .CDD
1 * 512
3 * 64
7 * 8
5 * 1 = 5
= 56
= 192
= 512
Placeholder
values
Octal number
4096 512 64 8 1
...
...
1375
765