<-- Previous || Up || Next -->

Max Real Function
Math Reals Class

Public Function MaxReal( _
    ParamArray vArgs() As Variant _
    ) As Variant

"Maximum Of Real Numbers"
Return the maximum value of the numeric arguments.
The arguments must contain strings or numbers, but not both.
Function returns the leftmost of the maximum arguments.

    MaxReal(23) = 23
    MaxReal(23, 12) = 23
    MaxReal(12, 45, 23) = 45
    IsNull(MaxReal) = True
See also:
    MaxRealVerify Subroutine
    Max2Real Function
    Max3Real Function
    MinReal Function
vArgs: One or more numeric arguments, the maximum of which is returned. Function returns Null if there are no arguments.
Note: If all arguments happen to be strings, they will be compared using Binary comparisons.
Note: This function will generate an error if any of the arguments are not compatible, such as if one is a string and another is numeric.
Note: This function does not support three-valued logic. The behavior of this function is undefined if any of the arguments are Null.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.