Mono Class Library: System.Math Overview | Members

System.Math.Min Method

Returns the lesser of two specified double values.

[System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)]
public static double Min (double val1, double val2)

Parameters

val1
The first of two specified double values to compare.
val2
The second of two specified double values to compare.

Returns

A double equal to val1 if val1 is less than or equal to val2; otherwise, the return value is equal to val2. If val1, val2, or both are equal to double.NaN, double.NaN is returned.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0