Decimal to Octal
Convert a large non-negative integer from decimal to base eight without sacrificing accuracy.
Convert a large non-negative integer from decimal to base eight without sacrificing accuracy.
How to use
- Copy the complete original number from a plain-text source.
- Paste the digits as one value and run the octal conversion.
- Compare the octal digits with the example, paying particular attention to the final digit.
Worked example
Input
9007199254740993Expected result
400000000000000001Check the result
The ending 1 should survive even above JavaScript’s safe integer range.