Instance Property

nextUp

The least representable value that compares greater than self.

Declaration

var nextUp: CGFloat { get }

Discussion

  • If x is -infinity, then x.nextUp is -greatestMagnitude.

  • If x is -leastNonzeroMagnitude, then x.nextUp is -0.0.

  • If x is zero, then x.nextUp is leastNonzeroMagnitude.

  • If x is greatestMagnitude, then x.nextUp is infinity.

  • If x is infinity or NaN, then x.nextUp is x.

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