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