Edit

Share via


Half.MaxNative(Half, Half) Method

Definition

Compares two values to compute which is greater using platform-specific behavior for NaN and NegativeZero.

public:
 static Half MaxNative(Half x, Half y) = System::Numerics::INumber<Half>::MaxNative;
public static Half MaxNative(Half x, Half y);
static member MaxNative : Half * Half -> Half
Public Shared Function MaxNative (x As Half, y As Half) As Half

Parameters

x
Half

The value to compare with y.

y
Half

The value to compare with x.

Returns

x if it is greater than y; otherwise, y.

Implements

Applies to