Wilang Documentation1.0.0+4

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)

Expected result: "0o70".

See also#

bin · hex

All functions · Math guides