使用 版本 下拉選單切換服務。 了解更多關於導航的資訊。
Apply to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
傳回輸入是否為無限值(正值或負值)。
語法
isinf(
數字)
深入瞭解 語法慣例。
參數
| 姓名 | 類型 | 必要 | 描述 |
|---|---|---|---|
| number | real |
✔️ | 要檢查是否無限的值。 |
傳回
true 如果 x 是正數或負數無限, false 則為 ,否則為 。
範例
range x from -1 to 1 step 1
| extend y = 0.0
| extend div = 1.0*x/y
| extend isinf=isinf(div)
輸出
| x | y | div | isinf |
|---|---|---|---|
| -1 | 0 | -∞ | true |
| 0 | 0 | NAN | false |
| 1 | 0 | ∞ | true |
相關內容
- 若要檢查值是否為 Null,請參閱 isull()。
- 若要檢查值是否有限,請參閱 isfinite()。
- 若要檢查值是否為 NaN (Not-a-Number),請參閱 isnan()。