Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
Switch services using the Version drop-down list. Learn more about navigation.
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 is real(null).
Example
The following example checks whether the input "123.4" was converted to the real value.
toreal("123.4") == 123.4