Instance Method

isEqual(to:)

IEEE 754 equality predicate.

Declaration

func isEqual(to other: CGFloat) -> Bool

Discussion

-0 compares equal to +0, and NaN compares not equal to anything, including itself.

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