240 in Binary
240 in binary is 1111 0000 (11110000).
Result 11110000.
Binary (base 2)1111 0000
Step by step
- Divide by 2 repeatedly and write down the remainders:
Division Quotient Remainder 240 ÷ 2 120 0 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: 1111 0000
| binary (base 2) | 1111 0000 |
|---|---|
| octal (base 8) | 360 |
| decimal (base 10) | 240 |
| hexadecimal (base 16) | F0 |
| Bits needed | 8 bits (fits in 1 byte) |
| 8-bit form | 1111 0000 |
| 16-bit form | 0000 0000 1111 0000 |
| 32-bit form | 0000 0000 0000 0000 0000 0000 1111 0000 |
Quick method for 240
Find the powers of 2 that add up to 240: 128 + 64 + 32 + 16. Put a 1 in those places and 0 elsewhere: 11110000.
240 in other forms
- Place values: 128 + 64 + 32 + 16 = 240
- Hex: F0
- Octal: 360
- 8 bits — fits in one byte
- 4 one-bits (even parity)
- Padded: 1111 0000
- 16-bit: 0000 0000 1111 0000
- One's complement (8-bit): 0000 1111
- As a signed byte (two's complement): -16
- Between 27 = 128 and 28 = 256
Going back: binary to decimal.
More numbers in binary
240 in binary: questions
What is 240 in binary?
11110000.
What is 240 in hex?
F0.
How many bits is 240?
8.