MathF.Max(Single, Single) Metod

Definition

Returnerar det större av två flyttalsnummer med enkel precision.

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

Parametrar

x
Single

Det första talet att jämföra.

y
Single

Det andra talet att jämföra.

Returer

Ju större och x större y

Gäller för