Instance Property

isCanonical

A Boolean value indicating whether the instance’s representation is in the canonical form.

Required.

Declaration

var isCanonical: Bool { get }

Discussion

The IEEE 754 specification defines a canonical, or preferred, encoding of a floating-point value’s representation. Every Float or Double value is canonical, but noncanonical values of the Float80 type exist, and noncanonical values may exist for other types that conform to the FloatingPoint protocol.