What is 10101010 in decimal?
10101010 in binary equals 170 in decimal.
Step-by-step working
| Bit | Position | 2n | Contribution |
|---|---|---|---|
| 1 | 7 | 128 | 128 |
| 0 | 6 | 64 | 0 |
| 1 | 5 | 32 | 32 |
| 0 | 4 | 16 | 0 |
| 1 | 3 | 8 | 8 |
| 0 | 2 | 4 | 0 |
| 1 | 1 | 2 | 2 |
| 0 | 0 | 1 | 0 |
| Total | 10101010₂ = 128 + 32 + 8 + 2 = 170 | ||
How it works
Each bit of 10101010 is multiplied by 2 raised to its position (counted from 0 at the right) and the results are added.
Convert any value with our free binary to decimal converter — no sign-up needed.