Decimal To Hexadecimal
How This Converter Works
Converts a signed decimal integer to uppercase hexadecimal; whitespace and underscores are ignored.
Formula or rule
Remove whitespace and underscores, validate signed decimal digits, parse in base 10, then format in base 16 and uppercase the result.
Example
- Input
- 255
- Calculation
- 255 = 15×16 + 15, so both hexadecimal digits are F.
- Result
- FF