Magnitude(Int16, Int16) Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compares two values to compute which is greater.
public: static short MaxMagnitude(short x, short y) = System::Numerics::INumberBase<short>::MaxMagnitude;
public static short MaxMagnitude (short x, short y);
static member MaxMagnitude : int16 * int16 -> int16
Public Shared Function MaxMagnitude (x As Short, y As Short) As Short
x if it is greater than
For IFloatingPointIeee754<TSelf> this method matches the IEEE 754:2019
maximumMagnitude function. This requires NaN inputs to not be propagated back to the caller and for
-0.0 to be treated as less than