Octal to Decimal and Decimal to Octal Conversion

Like binary and decimal number system octal is another type of number system. As the name suggests the base of this number system is 8, i.e. in this number system there are 8 digits which can be used, they are 0, 1, 2, 3, 4, 5, 6 and 7. The concept of octal number system came from the Native Americans as they used to count numbers not with their fingers but with the space between their fingers i.e. 8. The octal number system became quite popular in the 90s but in modern era the binary number system has replaced it due to its reliability although this number system is still used in some specific applications.

Decimal to Octal Conversion

Any decimal number can be converted into octal number system by dividing it by the largest possible power of 8.

The remainder then again divided by the largest possible power of 8, this method is repeated until the power of 8 is 1 and the remainder obtained is less than 8. The result is obtained by arranging the obtained quotients as they are acquired. The method will be clear by a simple example.
Let us convert 13010 into octal number
First of all we have to divide it by the largest possible power of 8 i.e. 82
130 / 82 = 2
130 - 82×2 = 2
2 / 81 = 0
2 - 0 = 2
2/80 = 2
So the octal equivalent of 13010 is 2028

Octal to Decimal Conversion

Similarly any octal number can be converted into decimal number. The method is quite similar to the transformation of any binary number to decimal number, the only difference is that in this case the 2 s will be replaced by 8 and everything else i.e. the methods will remain same. So it is quite clear if we want to change any octal number into decimal number we have to start multiplying the digits of the number from right hand side with increasing powers of 8 staring from 0 and finally summing up all the products. The method will be clearer with an example.
Suppose we want to convert 1238 into decimal number, so we have to follow the procedure as shown below
1238 = 1×82 + 2×81 + 3×80 = 64 + 16 + 3 = 73
So, the decimal equivalent of the number 1238 is 7310

Video presentation of Decimal to Octal Conversion


Closely Related Articles Binary Number System | Binary to Decimal and Decimal to Binary ConversionBinary to Decimal and Decimal to Binary ConversionBCD or Binary Coded Decimal | BCD Conversion Addition SubtractionBinary to Octal and Octal to Binary ConversionBinary to Hexadecimal and Hex to Binary ConversionHexadecimal to Decimal and Decimal to Hexadecimal ConversionGray Code | Binary to Gray Code and that to Binary ConversionOctal Number SystemDigital Logic Gates2′s Complement1′s ComplementASCII CodeHamming Code2s Complement ArithmeticError Detection and Correction Codes9s complement and 10s complement | SubtractionSome Common Applications of Logic GatesKeyboard EncoderAlphanumeric codes | ASCII code | EBCDIC code | UNICODEMore Related Articles Digital ElectronicsBoolean Algebra Theorems and Laws of Boolean AlgebraDe Morgan Theorem and Demorgans LawsTruth Tables for Digital LogicBinary Arithmetic Binary AdditionBinary SubtractionSimplifying Boolean Expression using K MapBinary DivisionExcess 3 Code Addition and SubtractionK Map or Karnaugh MapSwitching Algebra or Boolean AlgebraBinary MultiplicationParallel SubtractorBinary Adder Half and Full AdderBinary SubstractorSeven Segment DisplayBinary to Gray Code Converter and Grey to Binary Code ConverterBinary to BCD Code ConverterAnalog to Digital ConverterDigital Encoder or Binary EncoderBinary DecoderBasic Digital CounterDigital ComparatorBCD to Seven Segment DecoderParallel AdderParallel Adder or SubtractorMultiplexerDemultiplexer555 Timer and 555 Timer WorkingLook Ahead Carry AdderOR Operation | Logical OR OperationAND Operation | Logical AND OperationLogical OR GateLogical AND GateNOT GateUniversal Gate | NAND and NOR Gate as Universal GateNAND GateDiode and Transistor NAND Gate or DTL NAND Gate and NAND Gate ICsX OR Gate and X NOR GateTransistor Transistor Logic or TTLNOR GateFan out of Logic GatesINHIBIT GateNMOS Logic and PMOS LogicSchmitt GatesLogic Families Significance and Types of Logic FamiliesLatches and Flip FlopsS R Flip Flop S R LatchActive Low S R Latch and Flip FlopGated S R Latches or Clocked S R Flip FlopsD Flip Flop or D LatchJ K Flip FlopMaster Slave Flip FlopRead Only Memory | ROMProgrammable Logic DevicesProgrammable Array LogicApplication of Flip FlopsShift RegistersBuffer Register and Controlled Buffer RegisterData Transfer in Shift RegistersSerial In Serial Out (SISO) Shift RegisterSerial in Parallel Out (SIPO) Shift RegisterParallel in Serial Out (PISO) Shift RegisterParallel in Parallel Out (PIPO) Shift RegisterUniversal Shift RegistersBidirectional Shift RegisterDynamic Shift RegisterApplications of Shift RegistersUninterruptible Power Supply | UPSConversion of Flip FlopsJohnson CounterSequence GeneratorRing CounterNew Articles Principle of Water Content Test of Insulating OilCollecting Oil Sample from Oil Immersed Electrical EquipmentCauses of Insulating Oil DeteriorationAcidity Test of Transformer Insulating OilMagnetic Flux