How to convert Decimal to Octal
Converting a decimal number from decimal system to hexadecimal system repeatedly dividing the decimal number by 8 (octal is base-8) and get the remainder and quotient until the quotient becomes zero.
Let's see an example. Convert the decimal number 63 to octal :
- Divide 63 by 8 : 63 ÷ 8 = 7 remainder 7. Concatenate the remainder and quotient : 77
- Divide the quotient 7 by 8 : 7 ÷ 8 = 0 remainder 7. Concatenate the remainder and quotient : 777
The decimal number 63 is equivalent to the octal number 777.