120 in Binary
120 in binary is 111 1000 (1111000).
Result 1111000.
Binary (base 2)111 1000
Step by step
- Divide by 2 repeatedly and write down the remainders:
Division Quotient Remainder 120 ÷ 2 60 0 60 ÷ 2 30 0 30 ÷ 2 15 0 15 ÷ 2 7 1 7 ÷ 2 3 1 3 ÷ 2 1 1 1 ÷ 2 0 1 - Read the remainders from bottom to top: 111 1000
| binary (base 2) | 111 1000 |
|---|---|
| octal (base 8) | 170 |
| decimal (base 10) | 120 |
| hexadecimal (base 16) | 78 |
| Bits needed | 7 bits (fits in 1 byte) |
| 8-bit form | 0111 1000 |
| 16-bit form | 0000 0000 0111 1000 |
| 32-bit form | 0000 0000 0000 0000 0000 0000 0111 1000 |
Quick method for 120
Find the powers of 2 that add up to 120: 64 + 32 + 16 + 8. Put a 1 in those places and 0 elsewhere: 1111000.
120 in other forms
- Place values: 64 + 32 + 16 + 8 = 120
- Hex: 78
- Octal: 170
- 7 bits — fits in one byte
- 4 one-bits (even parity)
- Padded: 0111 1000
- 16-bit: 0000 0000 0111 1000
- One's complement (8-bit): 1000 0111
- Between 26 = 64 and 27 = 128
- −120 in 8-bit two's complement: 1000 1000
- ASCII: “x” — ASCII table
Going back: binary to decimal.
More numbers in binary
120 in binary: questions
What is 120 in binary?
1111000.
What is 120 in hex?
78.
How many bits is 120?
7.