ValueMathMinT Method
Returns the smaller of two values.
Namespace: Fluent.Calculations.Primitives.BaseTypesAssembly: 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
- val1 T
- The first of two numbers to compare
- val2 T
- The second of two numbers to compare
- T
- Type of value
TNew 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.
Please refer to .NET Math.Min(Decimal, Decimal) documentation for more details.