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

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

Parameters

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

Return Value

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