二进制转十进制转换器 — 公式
Binary to Decimal Converter
How It Works
Each binary digit (bit) represents a power of 2. From right to left:
Multiply each bit by its place value and sum all the results.
计算示例
Convert binary 00010101 to decimal.
- 0×128 + 0×64 + 0×32 + 1×16 + 0×8 + 1×4 + 0×2 + 1×1
- = 0 + 0 + 0 + 16 + 0 + 4 + 0 + 1
- = 21 in decimal