NaN and Infinity
The special numeric values NaN and Infinity.
Syntax
specialValue = nanValue | infinityValue
nanValue = "NaN"
infinityValue = ["+" | "-"] "Inf"Structural elements
Token
Name
Description
Valid forms
NaN # Not a Number
Inf # positive infinity
-Inf # negative infinity
+Inf # positive infinity (explicit sign, not preserved)Not the special value
Preservation of structure
See Also
Last updated
Was this helpful?
