Min()

Math::Min(T0, T1) method

Returns the smallest value out of two numeric ones specified.

template<class T0,class T1,class> static auto System::Math::Min(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

Smallest value out of val1 and val2.

Math::Min(T0, T1) method

Returns the smallest value out of two numeric ones specified.

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

Template parameters

ParameterDescription
T0Type of first value.
T1Type of second value.

Arguments

ParameterTypeDescription
val1T0First value.
val2T1Second value.

Return Value

Smallest value out of val1 and val2.

See Also