Tech/Basics/Binary
Jump to navigation
Jump to search
Convert to Binary
To convert to binary, subtract the largest 2^N bit size from you range and repeat marking 1 for numbers you can subtract. For 8 bits here is an example.
- 234
- 1(128)
- 1(64)
- 1(32)
- 0(16)
- 1(8)
- 0(4)
- 1(2)
- 0(1)
- Leaves us with 11101010 for 234