4 in Binary
4 in binary is 100.
Result 100.
Binary (base 2)100
Step by step
- Divide by 2 repeatedly and write down the remainders:
Division Quotient Remainder 4 ÷ 2 2 0 2 ÷ 2 1 0 1 ÷ 2 0 1 - Read the remainders from bottom to top: 100
| binary (base 2) | 100 |
|---|---|
| octal (base 8) | 4 |
| decimal (base 10) | 4 |
| hexadecimal (base 16) | 4 |
| Bits needed | 3 bits (fits in 1 byte) |
| 8-bit form | 0000 0100 |
| 16-bit form | 0000 0000 0000 0100 |
| 32-bit form | 0000 0000 0000 0000 0000 0000 0000 0100 |
Quick method for 4
Find the powers of 2 that add up to 4: 4. Put a 1 in those places and 0 elsewhere: 100.
4 in other forms
- Place values: 4 = 4
- Hex: 4
- Octal: 4
- 3 bits — fits in one byte
- 1 one-bit (odd parity)
- Padded: 0000 0100
- 16-bit: 0000 0000 0000 0100
- One's complement (8-bit): 1111 1011
- Power of two: 22
- −4 in 8-bit two's complement: 1111 1100
- ASCII: EOT — ASCII table
Going back: binary to decimal.
More numbers in binary
4 in binary: questions
What is 4 in binary?
100.
What is 4 in hex?
4.
How many bits is 4?
3.