Type Property


A signaling NaN (not-a-number).


static var signalingNaN: CGFloat { get }


The default IEEE 754 behavior of operations involving a signaling NaN is to raise the Invalid flag in the floating-point environment and return a quiet NaN. Operations on types conforming to FloatingPoint should support this behavior, but they might also support other options; for example, it would be reasonable to implement alternative operations in which operating on a signaling NaN is a fatalError() or results in a diagnostic for debugging purposes.


From Protocol

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software