×
Power of 2 Method for Decimal-to-Binary Conversion
The Power of 2 Method converts decimal numbers to binary by checking which powers of 2
fit into the number, starting from the largest. If a power fits, subtract it and write 1;
if not, write 0.
Steps:
- List powers of 2 (starting from the highest under the number).
- Check if each power fits into the number.
- Write 1 if it fits (subtract it) or 0 if it doesn't.
- Continue until reaching 0.
Example: Convert 194 to Binary
Powers of 2: 128, 64, 32, 16, 8, 4, 2, 1
- 128 fits → 1 (194 - 128 = 66)
- 64 fits → 1 (66 - 64 = 2)
- 32, 16, 8, 4 don't fit → 0000
- 2 fits → 1 (2 - 2 = 0)
- 1 doesn't fit → 0
Result: 11000010 (Binary for 194)