138 in Binary
138 in binary is 1000 1010 (10001010).
Result 10001010.
Binary (base 2)1000 1010
Step by step
- Divide by 2 repeatedly and write down the remainders:
Division Quotient Remainder 138 ÷ 2 69 0 69 ÷ 2 34 1 34 ÷ 2 17 0 17 ÷ 2 8 1 8 ÷ 2 4 0 4 ÷ 2 2 0 2 ÷ 2 1 0 1 ÷ 2 0 1 - Read the remainders from bottom to top: 1000 1010
| binary (base 2) | 1000 1010 |
|---|---|
| octal (base 8) | 212 |
| decimal (base 10) | 138 |
| hexadecimal (base 16) | 8A |
| Bits needed | 8 bits (fits in 1 byte) |
| 8-bit form | 1000 1010 |
| 16-bit form | 0000 0000 1000 1010 |
| 32-bit form | 0000 0000 0000 0000 0000 0000 1000 1010 |
Quick method for 138
Find the powers of 2 that add up to 138: 128 + 8 + 2. Put a 1 in those places and 0 elsewhere: 10001010.
138 in other forms
- Place values: 128 + 8 + 2 = 138
- Hex: 8A
- Octal: 212
- 8 bits — fits in one byte
- 3 one-bits (odd parity)
- Padded: 1000 1010
- 16-bit: 0000 0000 1000 1010
- One's complement (8-bit): 0111 0101
- As a signed byte (two's complement): -118
- Between 27 = 128 and 28 = 256
Going back: binary to decimal.
More numbers in binary
138 in binary: questions
What is 138 in binary?
10001010.
What is 138 in hex?
8A.
How many bits is 138?
8.