Click or drag to resize
MathMin Method (Double, Double)
Returns the smaller of two double-precision floating-point numbers.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static double Min(
	double val1,
	double val2
)

Parameters

val1
Type: SystemDouble
The first of two double-precision floating-point numbers to compare.
val2
Type: SystemDouble
The second of two double-precision floating-point numbers to compare.

Return Value

Type: Double
Parameter val1 or val2, whichever is smaller. If val1, val2, or both val1 and val2 are equal to NaN, NaN is returned.
See Also