Octal To Hexadecimal
How This Converter Works
Converts an unsigned octal integer using digits 0-7 to uppercase hexadecimal; whitespace and underscores are ignored.
Formula or rule
Remove whitespace and underscores, validate digits 0-7, parse as base 8, then format in base 16 and uppercase.
Example
- Input
- 157
- Calculation
- 157₈ = 111₁₀ = 6×16 + 15.
- Result
- 6F