todouble(), toreal()
Converts the input to a value of type real. (todouble() and toreal() are synonyms.)
toreal("123.4") == 123.4
Note
Prefer using double() or real() when possible.
Syntax
toreal(Expr)
todouble(Expr)
Arguments
- Expr: An expression whose value will be converted to a value of type
real.
Returns
If conversion is successful, the result is a value of type real.
If conversion is not successful, the result is the value real(null).
Feedback
Submit and view feedback for