isinf()
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Returns whether the input is an infinite (positive or negative) value.
Syntax
isinf(
number)
Learn more about syntax conventions.
Parameters
Name | Type | Required | Description |
---|---|---|---|
number | real |
✔️ | The value to check if infinite. |
Returns
true
if x is a positive or negative infinite and false
otherwise.
Example
range x from -1 to 1 step 1
| extend y = 0.0
| extend div = 1.0*x/y
| extend isinf=isinf(div)
Output
x | y | div | isinf |
---|---|---|---|
-1 | 0 | -∞ | true |
0 | 0 | NaN | false |
1 | 0 | ∞ | true |
Related content
- To check if a value is null, see isnull().
- To check if a value is finite, see isfinite().
- To check if a value is NaN (Not-a-Number), see isnan().