Single.MaxNative(Single, Single) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
比較兩個值以計算,利用平台特定行為計算 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。