語言

Single.MaxNative(Single, Single) 方法

定義

比較兩個值以計算,利用平台特定行為計算 NaN 和 NegativeZero。

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

參數

x
Single

要比較的 y值。

y
Single

要比較的 x值。

傳回

x 若 大於 y;,則 y。

實作

適用於