Max Function

Returns the largest value passed to it.

Syntax
result = Max( value1, [value2] )

Parameters
value1 | Double | The first number for comparison.
value2 | Double (Optional) | The second number for comparison.

Return Value
Result | Double | The maximum value of value1 to valueN.

# Notes

The Max function compares two or more numbers and returns the largest of the passed values.

# Examples

This example uses the Max function to return the largest of the values passed

Dim d As Double
d=Max(3.01, 4.05) //returns 4.05
d=Max(3.012, 3.011, 1.56) //returns 3.012

.

# See Also

Abs, Ceil, Exp, Floor, Min, Pow, Sqrt functions.