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

  1. Paste the sample as a single number, with its leading zeros or 0b prefix if present.
  2. Convert from base two to decimal.
  3. Check the positions of the two 1 digits to confirm the result independently.

Worked example

Input

10000000001

Expected result

1025

Check the result

In this example the two set bits contribute 1024 and 1, giving 1025.

Continue with another guide

Cookie
We care about your data and would love to use cookies to improve your experience.

Learn how we use cookies