Type Property

signalingNaN

A signaling NaN (not-a-number).

Declaration

static var signalingNaN: CGFloat { get }

Discussion

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.

Relationships

From Protocol