Binary to Decimal
Represent a binary whole number in decimal using its exact place values.
Represent a binary whole number in decimal using its exact place values.
How to use
- Paste the sample as a single number, with its leading zeros or 0b prefix if present.
- Convert from base two to decimal.
- Check the positions of the two 1 digits to confirm the result independently.
Worked example
Input
10000000001Expected result
1025Check the result
In this example the two set bits contribute 1024 and 1, giving 1025.