oct#
Format a number as octal
Available in: math cells, REPL.
Syntax#
oct(value)
Arguments and behavior#
Returns an octal string including the 0o prefix, so oct(8) is 0o10.
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
oct(56)Interactive examples could not load. You can still copy the expressions.
Expected result: "0o70".