# Binary to Decimal and Decimal to Binary Conversion

_{10}the base 10 is written as suffix or radix. If it is not written then by default we must understand that it is a decimal number by default.

On the other hand, binary number invented by Gottfried Leibniz in 1679 has a base of two. “Bi” means two so from there we can say that the base of the binary system is 2. That is, only two numbers are sufficient to represent a number in binary format. The numbers which are used in binary number system are 0 and 1.

Binary number can be represented by putting 2 in the prefix which denotes the base. If the base is not given, then it is by default assumed to be a decimal number .We have to be very careful in writing a binary number, a slight mistake may result in a very serious error. For example, a binary number is written as follows-

(00110)_{2}.

Now a question may arise, why do we need binary number? We have decimal number system which is familiar to all of us and most of the persons do not understand binary. The answer is that any programmable device or a processor can work in two modes either high or low. Here, high denotes the supply is connected to that point and low denotes that the point is grounded or is at a state of zero volts. This is called positive logic and in other logic system the reverse is taken which is known as negative logic system.

Also, we can say that a high means that it performs some function or work and low indicates that it has not performed any work. The reverse may also be true if we take negative logic system. So, from the above description we can say that it is much easier and convenient to use binary number system in the computer instead of decimal and also conversion will be required in order that the output result which is given in binary form should be converted to decimal for the sake of the user.

## Conversion from Binary to Decimal

### Conversion of Integer Numbers

Expand the number given in binary form in the power of 2 and sum the values, the result which we will get will be in the decimal form. For example-### Convert Binary Number to Decimal Number

### Conversion of Decimal Point Number to Decimal

This can also be done in the same way, however after the decimal point the number should be multiplied with 2^{-1}, 2

^{-2}etc.

For example,

## Conversion from Decimal to Binary

### Integer Numbers

Divide the number by 2 and take only the remainder, if division is completed than take only the remainder which gives the binary number.Example So, the binary equivalent of (14)

_{10}is (1110)

_{2}

After the dash (-) remainder is written.

Suppose we are converting the decimal number (87)

^{10}. Now the conversion is shown below

### For Fractional Numbers

In this case, the successive multiplication is done. The number which is to be converted is multiplied with base or radix of binary number which is 2. The integer part or the carry of the product is taken out and the same process is repeated until we get an integer. For example-The binary equivalent of (.95)

_{10}is evaluated as follows- Since, we are not getting the integer value after successive multiplication, we can approximate the value to be (.111110….)

_{2}.

## Conversion of Negative Number

In case of a negative number we can go for 2’s complement representation of a signed number. Example- 9 = 0000 10011’s complement = 1111 0110.

Adding 1 we get = 11110111 which is the 2’s complement representation of (-9).

### Convert Decimal Number to Binary Number

**Comments/Feedbacks**

Closely Related Articles Binary Number System | Binary to Decimal and Decimal to Binary ConversionBCD or Binary Coded Decimal | BCD Conversion Addition SubtractionBinary to Octal and Octal to Binary ConversionOctal to Decimal and Decimal to Octal 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