Čítať v angličtine Upraviť

Zdieľať cez


MathF.Min(Single, Single) Method

Definition

Returns the smaller of two single-precision floating-point numbers.

C#
public static float Min(float x, float y);

Parameters

x
Single

The first number to compare.

y
Single

The second number to compare.

Returns

The smaller of x and y

Applies to

Produkt Verzie
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1