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
- Paste the entire sample, including the 0x prefix.
- Run the conversion and read the decimal digits as a single number.
- Compare the complete result with the expected output, checking the last three digits in particular.
Worked example
Input
0x20000000000001Expected result
9007199254740993Check the result
The result ends in 993. Changing the case of hex letters does not affect the value.