Number 21 in binary code
Decimal to Binary Converter
What is number 21 in binary?
Answer
Decimal number 21 in binary is
10101
5 bits: 3 ones, 2 zeros · as a byte: 0001 0101
Base 2, unsigned: each place is worth a power of 2 — from 2⁴ = 16 on the left to 2⁰ = 1 on the right.
| division | quotient | remainder |
|---|---|---|
| 21 ÷ 2 | 10 | 1 |
| 10 ÷ 2 | 5 | 0 |
| 5 ÷ 2 | 2 | 1 |
| 2 ÷ 2 | 1 | 0 |
| 1 ÷ 2 | 0 | 1 |
↑ Read the remainders from bottom to top: 10101
Found an error in the calculation or the information?
Related Calculations
See Also
- Binary to Decimal Converter - Binary numbers to Decimal conversion
- Hex to Decimal - Hexadecimal numbers to Decimal conversion
- Decimal to hex converter - Decimal numbers to Hexadecimal conversion
Share This Calculation
Print
Facebook
Twitter
Telegram
WhatsApp
Viber
Email
