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

  1. Copy the complete original number from a plain-text source.
  2. Paste the digits as one value and run the octal conversion.
  3. Compare the octal digits with the example, paying particular attention to the final digit.

Worked example

Input

9007199254740993

Expected result

400000000000000001

Check the result

The ending 1 should survive even above JavaScript’s safe integer range.

Continue with another guide

Cookie
We care about your data and would love to use cookies to improve your experience.

Learn how we use cookies