We can take the following steps to convert a decimal number to its octal equivalent:
First, take a decimal number and then check it. If the number is less than , the octal number will remain the same.
If the number is greater than , divide it by and store the remainder.
If the quotient is greater than , keep dividing it by until the quotient becomes
Repeat this step until we get a quotient less than .
The following figure illustrates the conversion of a decimal number to an octal number:
The following illustration demonstrates the final step of conversion:
Free Resources