Returns the value with greater magnitude.
- Xcode 9.0+
- Swift Standard Library
A floating-point value.
Another floating-point value.
y has greater magnitude, or whichever is a number if the other is NaN.
This method returns the value with greater magnitude of the two given values, preserving order and eliminating NaN when possible. For two values
y, the result of
x, or whichever of
y is a number if the other is a quiet NaN. If both
y are NaN, or either
y is a signaling NaN, the result is NaN.
maximum method implements the
max operation defined by the IEEE 754 specification.