Click or drag to resize
MathMin Method (Decimal, Decimal)
Returns the smaller of two decimal numbers.

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

Parameters

val1
Type: SystemDecimal
The first of two decimal numbers to compare.
val2
Type: SystemDecimal
The second of two decimal numbers to compare.

Return Value

Type: Decimal
Parameter val1 or val2, whichever is smaller.
See Also