語言

MathF.Max(Single, Single) 方法

定義

回傳兩個單精度浮點數中較大的那個。

public:
 static float Max(float x, float y);
public static float Max(float x, float y);
static member Max : single * single -> single
Public Shared Function Max (x As Single, y As Single) As Single

參數

x
Single

第一個比較的數字。

y
Single

第二個比較的數字。

傳回

與 的 x 較大 y

適用於