- Home
- BASE function
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:
Argument | Description |
---|---|
number | A number you want to convert. An integer greater than or equal to 0 and less than 2^53. |
radix | A base you want to convert the number to. An integer greater than or equal to 2 and less than or equal to 36. |
min_length | A 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 lenght 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.
Host ONLYOFFICE Docs on your own server or use it in the cloud
Article with the tag:
Browse all tags