The binary number 10101 is equivalent to decimal number:
21
Converting a binary number (base 2) to a decimal number (base 10) involves multiplying each binary digit by the corresponding power of 2 and summing the results. The position of each digit, starting from the rightmost digit as position 0, determines the power of 2.
Let's take the binary number 10101.
We identify the digits and their positions:
Now, we multiply each digit by the value of its position's power of 2:
| Binary Digit | Position | Power of 2 (\(2^{Position}\)) | Result (Digit \(\times\) Power of 2) |
|---|---|---|---|
| 1 | 4 | \(2^4 = 16\) | \(1 \times 16 = 16\) |
| 0 | 3 | \(2^3 = 8\) | \(0 \times 8 = 0\) |
| 1 | 2 | \(2^2 = 4\) | \(1 \times 4 = 4\) |
| 0 | 1 | \(2^1 = 2\) | \(0 \times 2 = 0\) |
| 1 | 0 | \(2^0 = 1\) | \(1 \times 1 = 1\) |
To find the decimal equivalent of the binary number 10101, we sum the results from the last column:
\(16 + 0 + 4 + 0 + 1 = 21\)
So, the binary number 10101 is equivalent to the decimal number 21.
The number of digit 1 present in the binary representation of 3 × 512 + 5 × 64 + 7 × 8 + 3 is:
(1235)8 is equivalent to-
How many digits in binary notation are required for the decimal number 17?
What is the hexadecimal equivalent of this binary number (1110) 2?
How many bits are required to represent (1000) 10 in BCD code?