How to convert Decimal to OctalThe decimal numeral system is the standard system for denoting integer and non-integer numbers. It is the extension to non-integer numbers of the Hindu-Arabic numeral system. For writing numbers, the decimal system uses ten decimal digits, a decimal mark, and, for negative numbers, a minus sign "-". The decimal digits are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9; the decimal separator is the dot "." in many countries.
The octal numeral system, or oct for short, is the base-8 number system, and uses the digits 0 to 7. Octal is sometimes used in computing instead of hexadecimal, perhaps most often in modern times in conjunction with file permissions under Unix systems. It has the advantage of not requiring any extra symbols as digits. It is also used for digital displays.
Follow these steps to convert a decimal number into octal form:
- Divide the decimal number by 8.
- Get the integer quotient for the next iteration (if the number will not divide equally by 8, then round down the result to the nearest whole number).
- Keep a note of the remainder, it should be between 0 and 7.
- Repeat the steps until the quotient is equal to 0.
- Write out all the remainders, from bottom to top. This is the solution.
|8453 / 8||1056||5|
|1056 / 8||132||0|
|132 / 8||16||4|
|16 / 8||2||0|
|2 / 8||0||2|