45 in Binary
45 in binary is 10 1101 (101101).
Result 101101.
Binary (base 2)10 1101
Step by step
- Divide by 2 repeatedly and write down the remainders:
Division Quotient Remainder 45 ÷ 2 22 1 22 ÷ 2 11 0 11 ÷ 2 5 1 5 ÷ 2 2 1 2 ÷ 2 1 0 1 ÷ 2 0 1 - Read the remainders from bottom to top: 10 1101
| binary (base 2) | 10 1101 |
|---|---|
| octal (base 8) | 55 |
| decimal (base 10) | 45 |
| hexadecimal (base 16) | 2D |
| Bits needed | 6 bits (fits in 1 byte) |
| 8-bit form | 0010 1101 |
| 16-bit form | 0000 0000 0010 1101 |
| 32-bit form | 0000 0000 0000 0000 0000 0000 0010 1101 |
Quick method for 45
Find the powers of 2 that add up to 45: 32 + 8 + 4 + 1. Put a 1 in those places and 0 elsewhere: 101101.
45 in other forms
- Place values: 32 + 8 + 4 + 1 = 45
- Hex: 2D
- Octal: 55
- 6 bits — fits in one byte
- 4 one-bits (even parity)
- Padded: 0010 1101
- 16-bit: 0000 0000 0010 1101
- One's complement (8-bit): 1101 0010
- Between 25 = 32 and 26 = 64
- −45 in 8-bit two's complement: 1101 0011
- ASCII: “-” — ASCII table
Going back: binary to decimal.
More numbers in binary
45 in binary: questions
What is 45 in binary?
101101.
What is 45 in hex?
2D.
How many bits is 45?
6.