Decimal to Octal Conversion

Опубликовано: 18 Март 2026
на канале: AKD Classes
26
3

#decimaltooctal #numberconversion
In Decimal Number, All the numbers to the base ten. These are the commonly used numbers, which are 0-9. It has both integer part and the decimal part. It is separated by a decimal point ".".
In Octal Number, All the numbers to the base 8. It contains digits from 0 to 7.

To convert the integer part of decimal number into its equivalent octal format, we will use the repeated-division process, where the decimal number will be divided by the base of the octal, i.e. 8 and after each division we have to collect the remainders, now when the process finished, collect the remainders from bottom to top order.

Similarly, to convert the fraction part of decimal number into its equivalent octal format, we will multiply the fraction part by the base of the octal, i.e. 8 and collect the integer part from the multiplication result and repeat the same process. Finally, collect the integer part in top to bottom order.

In this way we can convert any decimal number into its equivalent octal format.