Hexadecimal To Octal
How This Converter Works
Converts a case-insensitive unsigned hexadecimal integer to an unpadded octal numeral; whitespace and underscores are ignored.
Formula or rule
Remove whitespace and underscores, validate hexadecimal digits, parse as base 16, and format in base 8.
Example
- Input
- 1AF
- Calculation
- 1AF₁₆ = 431₁₀ = 6×64 + 5×8 + 7.
- Result
- 657