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
Section titled “Example 1”This expression returns the string 24.3 as a decimal datatype:
Dec('24.3')