Skip to main content

BASE function

The BASE function is one of the math and trigonometry functions. It is used to convert a number into a text representation with the given base.

Syntax​

BASE(number, radix, [min_length])

The BASE function has the following arguments:

ArgumentDescription
numberA number you want to convert. An integer greater than or equal to 0 and less than 2^53.
radixA base you want to convert the number to. An integer greater than or equal to 2 and less than or equal to 36.
min_lengthA minimum length of the returned string. An integer greater than or equal to 0 and less than 256. It is an optional parameter. If the result is shorter than the minimum length specified, leading zeros are added to the string.

Notes​

How to apply the BASE function.

Examples​

The figure below displays the result returned by the BASE function.

BASE Function