Convert decimal numbers to binary with advanced options
No conversion history yet.
The decimal number system uses 10 digits (0-9). Each position represents a power of 10:
Example: 423 = 4×10² + 2×10¹ + 3×10⁰ = 400 + 20 + 3
The binary number system uses only 2 digits (0 and 1). Each position represents a power of 2:
Example: 101 = 1×2² + 0×2¹ + 1×2⁰ = 4 + 0 + 1 = 5
Method 1: Division by 2
Division | Quotient | Remainder (Binary Digit) |
---|---|---|
42 ÷ 2 | 21 | 0 |
21 ÷ 2 | 10 | 1 |
10 ÷ 2 | 5 | 0 |
5 ÷ 2 | 2 | 1 |
2 ÷ 2 | 1 | 0 |
1 ÷ 2 | 0 | 1 |
Reading from bottom to top: 101010
For numbers with fractional parts:
Two's complement is used to represent negative numbers in binary: