HEX to Decimal

Convert a hexadecimal integer into its exact base-ten representation.

Convert a hexadecimal integer into its exact base-ten representation.

How to use

  1. Paste the entire sample, including the 0x prefix.
  2. Run the conversion and read the decimal digits as a single number.
  3. Compare the complete result with the expected output, checking the last three digits in particular.

Worked example

Input

0x20000000000001

Expected result

9007199254740993

Check the result

The result ends in 993. Changing the case of hex letters does not affect the value.

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