Math<T>.Max Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2

Overload List

Max(T, T) Returns the larger of two numbers.
Max(T, T, T) Returns the largest of three numbers.

Max(T, T)

Returns the larger of two numbers.
C#
public static T Max(
	T value1,
	T value2
)

Parameters

value1  T
The first value.
value2  T
The second value.

Return Value

T

Max(T, T, T)

Returns the largest of three numbers.
C#
public static T Max(
	T value1,
	T value2,
	T value3
)

Parameters

value1  T
The first value.
value2  T
The second value.
value3  T
The third value.

Return Value

T

See Also