todouble()

将输入表达式转换为类型为 real 的值。

todouble()toreal() 函数是等效的

语法

todouble(Expr)

详细了解语法约定

参数

客户 类型​​ 必需 Description
value 标量 (scalar) 要转换为 real 的值。

返回

如果转换成功,则结果为 real 类型的值。 否则,返回的值将为 real(null)

示例

todouble("123.4") == 123.4

注意

如果可能,请尽量使用 double() 或 real()