613-518-1166 info@zimdatabases.com

ZIM Language Reference


< All Topics


Converts a value into its numeric equivalent.





Any value, or an expression that yields any value.


A number specifying the number of decimal places required in the converted value. Decimals can be negative.

Return Value

Number equivalent of expression.


Use $tonumber to obtain the numeric equivalent of expression. If decimals is negative, the implicit number of decimal places in expression is used.



Evaluates to 1.27.


Evaluates to 2.667.


Evaluates to 2345.00.


Evaluates to 0.00000 (and produces an error).


Evaluates to 1.44.


See Also





About Functional Expressions

Decimals and Rounding

Decimals in Functional Expressions

Number Literals

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Table of Contents