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:
Dec(‘24.3’)

Last modified: 23 May 2021

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment