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