Decimal to Octal

This is the continuation of learning binary series.

You learned that binary is in the base two number system.

You also learned Hex is in the base 16 number system.

Well octal is in the base 8 number system.

0 1 2 3 4 5 6 7

Decimal to Octal


Example 1:

Lets start with a decimal number 33

Since you know that Octal is in the base 8 number system.

You divide 33 / 8

33 / 8 =  4

remainder 1  - Since you know 8 goes into 33 4 times and there is the number 1 left over

Then you take the number you got and divide that by 8

4 / 8 =  0

remainder none - Since you know 8 goes into 4 0 times and there for the remainder is none.

So the answer is 41

Example 2:

Lets start with another decimal number 98

You divide 98 / 8

98 / 8 = 12

Remainder 2 - Since you know 8 goes into 98 12 times and there is the number 2 left over

Then you take the number you got and divide that by 8

12 / 8 = 1

Remainder 4 - Since you know 8 goes into 12 1 time and there is the number 4 left over

Then you take the number you got and divide that by 8

1 / 8 = 0

Remainder 1 - Since you know 8 goes into 1 0 times and there is the number 1 left over

You now take all the remainders you got and put them together. Last to first.

So the answer is 142

Home

  • Home

Binary

  • Binary Basic
  • Binary addition
  • Binary Subtraction

Hex

  • Hexchart
  • Binary To Hex
  • Hex To Binary

Octal

  • Octal To Decimal
  • Decimal To Octal

Basics of a computer

  • Four stages of a computer
  • Dram VS. SRAM
  • programs and software