IS_INFINITE()
All functions > MATH > IS_INFINITE()
Returns TRUE if a floating-point number is infinite (positive or negative).
Signatures
Infinity check
Returns: TRUE if infinite, FALSE otherwise
IS_INFINITE(number: T) → BOOLEAN sql
| Parameter | Type | Required | Description |
|---|---|---|---|
number | T | Yes | Floating-point number to check |
With:
T: Floating-point type (FLOAT, DOUBLE)
Signature notes:
- Returns TRUE for both positive and negative infinity
- Returns FALSE for finite numbers and NaN
- Returns NULL if the input is NULL
- Only defined for FLOAT and DOUBLE
Examples
FeatureQL
SELECT
f1 := IS_INFINITE(42.5E0), -- Regular number
f2 := IS_INFINITE(INFINITY()), -- Positive infinity
f3 := IS_INFINITE(NAN()) -- NaN is not infinite
;Result
| f1 BOOLEAN | f2 BOOLEAN | f3 BOOLEAN |
|---|---|---|
| false | true | false |
On this page