Instance Property

isCanonical

True if and only if self is canonical.

Declaration

var isCanonical: Bool { get }

Discussion

Every floating-point value of type Float or Double is canonical, but non-canonical values of type Float80 exist, and non-canonical values may exist for other types that conform to FloatingPoint.

The non-canonical Float80 values are known as “pseudo-denormal”, “unnormal”, “pseudo-infinity”, and “pseudo-NaN”. (https://en.wikipedia.org/wiki/Extended_precision#x86_Extended_Precision_Format)

Relationships

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