nextDown
The greatest representable value that compares less than this value.
Declaration
var nextDown: Self { get }Discussion
For any finite value x, x.nextDown is less than x. For nan or -infinity, x.nextDown is x itself. The following special cases also apply:
If
xisinfinity, thenx.nextDownisgreatestFiniteMagnitude.If
xisleastNonzeroMagnitude, thenx.nextDownis0.0.If
xis zero, thenx.nextDownis-leastNonzeroMagnitude.If
xis-greatestFiniteMagnitude, thenx.nextDownis-infinity.