Home > Documentation > Syntax > Functions > Cnum
Convert expression to numeric.
This is useful for mathematical expressions where you want to avoid string concatenation if a variable’s type is a string.
Definition
cnum(arg1)
Parameters:
- arg1 – string
Expression representing a valid numeric.
Returns:
- A number.
Eg:
coutln(cnum("1") + 2)

Leave a comment