NAN

All functions > MATH > NAN

Returns the floating-point representation of NaN (Not a Number).

Signatures

Returns: NaN (Not a Number)

NAN() → DOUBLE
sql
ParameterTypeRequiredDescription

Notes

  • Represents an undefined or unrepresentable value
  • Results from invalid operations like SQRT(-1) or 0.0/0.0
  • NaN is not equal to any value, including itself
  • Any arithmetic operation with NaN results in NaN
  • Used to represent missing or invalid numeric data

Examples

FeatureQL
SELECT
    f1 := IS_NAN(NAN())  -- NaN value
;
Result
f1 BOOLEAN
True

Last update at: 2026/03/03 16:47:38
Last updated: 2026-03-03 16:48:19