40 in binary
40 in binary is 101000. In hexadecimal it is 28 and in octal 50.
40 in binary
Pick any whole number from 1 to 10,000.
How to work it out
- 1
Divide 40 by 2 again and again, writing down the remainder each time, until you reach 0.
- 2
Read the remainders from the bottom up: 101000.
- 3
Check by adding powers of 2: 32 + 8 = 40.
LaTeX source of the formulas on this page
\[ 40_{10} = 101000_{2} \]Dividing 40 by 2
| Number | Division | Remainder |
|---|---|---|
| 40 | 40 ÷ 2 = 20 | 0 |
| 20 | 20 ÷ 2 = 10 | 0 |
| 10 | 10 ÷ 2 = 5 | 0 |
| 5 | 5 ÷ 2 = 2 | 1 |
| 2 | 2 ÷ 2 = 1 | 0 |
| 1 | 1 ÷ 2 = 0 | 1 |
Questions
What is 40 in binary?
101000.
What is 40 in hexadecimal?
28.
What is 40 in octal?
50.
How many bits does 40 need?
6 bits.