Max()

Math::Max(T0, T1) method

Returns the greatest value out of two numeric ones specified.

template<class T0,class T1,class> static auto System::Math::Max(T0 val1, T1 val2) -> decltype(val1+val2)

Template parameters

ParameterDescription
T0Type of first value.
T1Type of second value.

Arguments

ParameterTypeDescription
val1T0First value.
val2T1Second value.

Return Value

Greatest value out of val1 and val2.

Math::Max(T0, T1) method

Returns the greatest value out of two numeric ones specified.

template<class T0,class T1,class> static T0 System::Math::Max(T0 val1, T1 val2)

Template parameters

ParameterDescription
T0Type of first value.
T1Type of second value.

Arguments

ParameterTypeDescription
val1T0First value.
val2T1Second value.

Return Value

Greatest value out of val1 and val2.

See Also