Test additional content header

ValueMathMaxT Method

Returns the larger 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 Max<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 larger. 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