Edit

Share via


INumber<TSelf>.MaxNative(TSelf, TSelf) Method

Definition

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

public:
 static override TSelf MaxNative(TSelf x, TSelf y);
public static virtual TSelf MaxNative(TSelf x, TSelf y);
static member MaxNative : 'Self * 'Self -> 'Self
Public Shared Overrides Function MaxNative (x As TSelf, y As TSelf) As TSelf

Parameters

x
TSelf

The value to compare with y.

y
TSelf

The value to compare with x.

Returns

TSelf

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

Applies to