Function reference
Converts the value of a string to a decimal.

Dec ( string )

Argument Description
string The string you want returned as a decimal.

Data type: Decimal
Returns the contents of string as a decimal if it succeeds and 0 if string is not a number.
The decimal datatype supports up to 28 digits.

Example 1
This expression returns the string 24.3 as a decimal datatype:

Last modified: 23 May 2021