NAN
All functions > CONSTANT > NAN
Returns the floating-point representation of NaN (Not a Number).
Syntax
NAN()
sql
Arguments
Parameter | Type | Required | Description |
---|
Returns
DOUBLE - NaN (Not a Number)
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