Computer Fundamental
Computer Tutorial

Converting Decimal Integer to Binary, Octal, Hexadecimal



Converting Decimal Integer to Binary, Octal, Hexadecimal

A decimal integer is converted to any other base, by using the division operation. To convert a decimal integer to—
• Binary - divide by 2
• Octal - divide by 8
• Hexadecimal - divide by 16
<

Convert 25 from Base 10 to Base 2 ( Decimal to Binary )

1. Make a table as shown below. Write the number in centre and to Base on the left side.

Decimal to Binary Conversion

2. Divide the number with to Base. After each division, write the remainder on right-side column and quotient in the next line in the middle column. Continue dividing till the quotient is 0.

Decimal to Binary Conversion

3. Write the digits in remainder column starting from downwards to upwards

Decimal to Binary Conversion

The binary equivalent of number (25)10 is (11001)2

Note : The steps shown above are followed to convert a decimal integer to a number in any other base.

Convert 23 from Base 10 to Base 2, 8, 16

Decimal to Binary Conversion