2024-02-01 12:06:08 +01:00

1.1 KiB

layout
default

Function oct #

Format a number as octal.

Syntax #

math.oct(value)

Parameters #

Parameter Type Description
value number | BigNumber Value to be stringified
wordSize number | BigNumber Optional word size (see format)

Returns #

Type Description
string The formatted value

Throws #

Type Description

Examples #

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

See also #

bin, hex