Decimal to Binary Conversion

Опубликовано: 16 Июль 2026
на канале: AKD Classes
61
5

#decimaltobinary #datarepresentation
Electronic and Digital systems may use a variety of different number systems, (e.g. Decimal, Hexadecimal, Octal, Binary).
The bas e of Decimal number(0 to 9) is 10 and that of Binary number(0,1) is 2. Decimal numbers can be easily converted into its equivalent binary format. There are two parts of a decimal number : the Integer part (left part of the decimal point) and the fraction part( right part of the decimal point).

To convert the integer part of decimal number into its equivalent binary format, we will use the repeated-division process, where the decimal number will be divided by the base of the binary, i.e. 2 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 binary format, we will multiply the fraction part by the base of the binary, i.e. 2 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 binary format.