Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this article
Applies to: ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Converts the input to a decimal number representation.
Note
When possible, use decimal literals instead.
todecimal(
value)
Learn more about syntax conventions.
Name | Type | Required | Description |
---|---|---|---|
value | scalar | ✔️ | The value to convert to a decimal. |
If conversion is successful, result is a decimal number.
If conversion isn't successful, result is null
.
The following example checks if the result of converting the input "123.45678"
is equal to the decimal 123.45678.
print todecimal("123.45678") == decimal(123.45678)
Output
print_0 |
---|
true |