Min Function

Returns the smallest of the numbers passed.

Syntax
result = Min( value1, [value2] )

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

Return Value
Result | Double | The smallest of passed values.

# Notes

The Min function compares the numbers passed and returns the smallest value.

# Examples

This example uses the Min function to return the lesser of the two values passed.

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

# See Also

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