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 value to a long (signed 64-bit) number representation.
Note
When possible, use long literals instead.
tolong(
value)
Learn more about syntax conventions.
Name | Type | Required | Description |
---|---|---|---|
value | scalar | ✔️ | The value to convert to a long. |
If conversion is successful, the result is a long number.
If conversion isn't successful, the result is null
.
The following example checks if the result of converting the string "123"
to a long number is equal to the integer 123.
tolong("123") == 123