Decimal to Binary Converter
To convert a decimal number to binary, divide the number by 2 repeatedly and collect the remainders. The binary number is obtained by reading the remainders from bottom to top.
Example: Convert Decimal 18 to Binary
Division Step | Division Expression | Quotient | Remainder |
---|---|---|---|
1 | 18 ÷ 2 | 9 | 0 |
2 | 9 ÷ 2 | 4 | 1 |
3 | 4 ÷ 2 | 2 | 0 |
4 | 2 ÷ 2 | 1 | 0 |
5 | 1 ÷ 2 | 0 | 1 |
Reading the remainders from bottom to top gives the binary equivalent: 10010 .