Function oct #

Format a number as octal.

Syntax #

math.oct(value)

Parameters #

Parameter Type Description
value number Value to be stringified

Returns #

Type Description
string The formatted value

Examples #

//the following outputs "0o70"
math.oct(56)

See also #

bin, hex

Fork me on GitHub