StrictMath.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

Returns the smaller of two double values. That is, the result is the value closer to negative infinity. If the arguments have the same value, the result is that same value. If either value is NaN, then the result is NaN. Unlike the numerical comparison operators, this method considers negative zero to be strictly smaller than positive zero. If one argument is positive zero and the other is negative zero, the result is negative zero.

Java documentation for java.lang.StrictMath.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

Returns the smaller of two int values. That is, the result the argument closer to the value of Integer#MIN_VALUE. If the arguments have the same value, the result is that same value.

Java documentation for java.lang.StrictMath.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

Returns the smaller of two long values. That is, the result is the argument closer to the value of Long#MIN_VALUE. If the arguments have the same value, the result is that same value.

Java documentation for java.lang.StrictMath.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

Returns the smaller of two float values. That is, the result is the value closer to negative infinity. If the arguments have the same value, the result is that same value. If either value is NaN, then the result is NaN. Unlike the numerical comparison operators, this method considers negative zero to be strictly smaller than positive zero. If one argument is positive zero and the other is negative zero, the result is negative zero.

Java documentation for java.lang.StrictMath.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