159 in Binary
159 in binary is 1001 1111 (10011111).
Result 10011111.
Binary (base 2)1001 1111
Step by step
- Divide by 2 repeatedly and write down the remainders:
Division Quotient Remainder 159 ÷ 2 79 1 79 ÷ 2 39 1 39 ÷ 2 19 1 19 ÷ 2 9 1 9 ÷ 2 4 1 4 ÷ 2 2 0 2 ÷ 2 1 0 1 ÷ 2 0 1 - Read the remainders from bottom to top: 1001 1111
| binary (base 2) | 1001 1111 |
|---|---|
| octal (base 8) | 237 |
| decimal (base 10) | 159 |
| hexadecimal (base 16) | 9F |
| Bits needed | 8 bits (fits in 1 byte) |
| 8-bit form | 1001 1111 |
| 16-bit form | 0000 0000 1001 1111 |
| 32-bit form | 0000 0000 0000 0000 0000 0000 1001 1111 |
Quick method for 159
Find the powers of 2 that add up to 159: 128 + 16 + 8 + 4 + 2 + 1. Put a 1 in those places and 0 elsewhere: 10011111.
159 in other forms
- Place values: 128 + 16 + 8 + 4 + 2 + 1 = 159
- Hex: 9F
- Octal: 237
- 8 bits — fits in one byte
- 6 one-bits (even parity)
- Padded: 1001 1111
- 16-bit: 0000 0000 1001 1111
- One's complement (8-bit): 0110 0000
- As a signed byte (two's complement): -97
- Between 27 = 128 and 28 = 256
Going back: binary to decimal.
More numbers in binary
159 in binary: questions
What is 159 in binary?
10011111.
What is 159 in hex?
9F.
How many bits is 159?
8.