Test additional content header

ValueMathMinT Method

Returns the smaller of two values.

Definition

Namespace: Fluent.Calculations.Primitives.BaseTypes
Assembly: Fluent.Calculations.Primitives (in Fluent.Calculations.Primitives.dll) Version: 1.1.0-aplha
public static T Min<T>(
	T val1,
	T val2
)
where T : new(), IValueProvider

Parameters

val1  T
The first of two numbers to compare
val2  T
The second of two numbers to compare

Type Parameters

T
Type of value

Return Value

T
New value of type T which has a primitive result of val1 or val2, whichever is smaller. It will also contain expression name and bith input parameters as arguments.

Remarks

Please refer to .NET Math.Min(Decimal, Decimal) documentation for more details.

See Also