The least representable value that compares greater than this value.
SDK
- Xcode 8.0+
Framework
- Swift Standard Library
Declaration
var nextUp: Double { get }
Discussion
For any finite value x, x is greater than x. For nan or infinity, x is x itself. The following special cases also apply:
If
xis-infinity, thenxis.next Up -greatest.Finite Magnitude If
xis-least, thenNonzero Magnitude xis.next Up -0..0 If
xis zero, thenxis.next Up least.Nonzero Magnitude If
xisgreatest, thenFinite Magnitude xis.next Up infinity.