Labs / Computer Science
Binary Number Explorer
Click any bit to flip it on or off, and the readouts show that same value in decimal, hexadecimal, and binary at once. Each cell is labelled with its place value, so you can watch how powers of two add up. Use the −1 / +1 buttons to see carries ripple, and flip on signed mode to meet two's complement.
u8 42hex 0x2Abin 0010 1010
What to try
- Turn on only the leftmost bit. Why is it worth so much more than the rightmost one?
- Set the value to all 1s, then press +1. Where does the number go, and why?
- Flip on signed mode. What does the most-significant bit's place value become?
- In 8-bit signed mode, what is the largest positive number you can make? The most negative?
- Switch between 4-, 8-, and 16-bit widths. How does the same hex string change size?