你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
toreal()
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Converts the input expression to a value of type real.
The
todouble()
andtoreal()
functions are equivalent.
Note
When possible, use real literals instead.
Syntax
toreal(
Expr)
Learn more about syntax conventions.
Parameters
Name | Type | Required | Description |
---|---|---|---|
value | scalar | ✔️ | The value to convert to real. |
Returns
If conversion is successful, the result is a value of type real
. Otherwise, the returned value will be real(null)
.
Example
toreal("123.4") == 123.4