nextUp
The least representable value that compares greater than this value.
Declaration
var nextUp: Float16 { get }Discussion
For any finite value x, x.nextUp is greater than x. For nan or infinity, x.nextUp is x itself. The following special cases also apply:
If
xis-infinity, thenx.nextUpis-greatestFiniteMagnitude.If
xis-leastNonzeroMagnitude, thenx.nextUpis-0.0.If
xis zero, thenx.nextUpisleastNonzeroMagnitude.If
xisgreatestFiniteMagnitude, thenx.nextUpisinfinity.