Udostępnij za pośrednictwem


Math.Min Method

Definition

Overloads

Min(Double, Double)

Returns the smaller of two double values.

Min(Int32, Int32)

Returns the smaller of two int values.

Min(Int64, Int64)

Returns the smaller of two long values.

Min(Single, Single)

Returns the smaller of two float values.

Min(Double, Double)

Returns the smaller of two double values.

[Android.Runtime.Register("min", "(DD)D", "")]
public static double Min (double a, double b);
[<Android.Runtime.Register("min", "(DD)D", "")>]
static member Min : double * double -> double

Parameters

a
Double

an argument.

b
Double

another argument.

Returns

the smaller of a and b.

Attributes

Remarks

Java documentation for java.lang.Math.min(double, double).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Min(Int32, Int32)

Returns the smaller of two int values.

[Android.Runtime.Register("min", "(II)I", "")]
public static int Min (int a, int b);
[<Android.Runtime.Register("min", "(II)I", "")>]
static member Min : int * int -> int

Parameters

a
Int32

an argument.

b
Int32

another argument.

Returns

the smaller of a and b.

Attributes

Remarks

Java documentation for java.lang.Math.min(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Min(Int64, Int64)

Returns the smaller of two long values.

[Android.Runtime.Register("min", "(JJ)J", "")]
public static long Min (long a, long b);
[<Android.Runtime.Register("min", "(JJ)J", "")>]
static member Min : int64 * int64 -> int64

Parameters

a
Int64

an argument.

b
Int64

another argument.

Returns

the smaller of a and b.

Attributes

Remarks

Java documentation for java.lang.Math.min(long, long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Min(Single, Single)

Returns the smaller of two float values.

[Android.Runtime.Register("min", "(FF)F", "")]
public static float Min (float a, float b);
[<Android.Runtime.Register("min", "(FF)F", "")>]
static member Min : single * single -> single

Parameters

a
Single

an argument.

b
Single

another argument.

Returns

the smaller of a and b.

Attributes

Remarks

Java documentation for java.lang.Math.min(float, float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to