A Boolean value indicating whether the instance is NaN (“not a number”).
SDK
- Xcode 6.0.1+
Framework
- Swift Standard Library
Declaration
Discussion
Because NaN is not equal to any value, including NaN, use this property instead of the equal-to operator (==
) or not-equal-to operator (!=
) to test whether a value is or is not NaN. For example:
This property is true
for both quiet and signaling NaNs.