todouble
The todouble
function converts the input to a value of type double
(real
, decimal
).
Aliases: double
, decimal
, todecimal
, real
, toreal
.
Syntax
todouble( Expression )
Arguments
- Expression: Expression whose value will be converted to a value of type
double
.
Returns
If the type conversion is successful, the result is a value of type double
(real
, decimal
).
If the type conversion fails, returns null
.
Example
todouble("123.4")
returns123.4
todouble("1e3")
returns1000
todouble("hello")
returnsnull