• Home
  • DECIMAL function

DECIMAL function

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

Syntax

DECIMAL(text, radix)

The DECIMAL function has the following arguments:

ArgumentDescription
textThe text representation of the number you want to convert. The string lenght must be less than or equal to 255 characters.
radixThe base of the number. An integer greater than or equal to 2 and less than or equal to 36.
Notes

How to apply the DECIMAL function.

Examples

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

DECIMAL Function

Host ONLYOFFICE Docs on your own server or use it in the cloud

Article with the tag:
Browse all tags