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
ParameterTypeRequiredDescription
numberTYesFloating-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 BOOLEANf2 BOOLEANf3 BOOLEAN
falsetruefalse

Last update at: 2026/05/26 17:22:09