Max_()

Math::Max_(float, float) method

Returns the largest single-precision floating point value out of the two specified.

float System::Math::Max_(float val1, float val2)

Arguments

ParameterTypeDescription
val1floatThe first comparand
val2floatThe second comparand

Return Value

The largest value out of val1 and val2; or NaN if one of the operands is NaN

Math::Max_(double, double) method

Returns the largest double-precision floating point value out of the two specified.

double System::Math::Max_(double val1, double val2)

Arguments

ParameterTypeDescription
val1doubleThe first comparand
val2doubleThe second comparand

Return Value

The largest value out of val1 and val2; or NaN if one of the operands is NaN

See Also