Method
Min
Description
Returns the smallest of the numbers passed.
Usage
result = Min(value1, value2,... ValueN)
Part |
Type |
Description |
---|---|---|
result |
The smallest of passed values. |
|
value1 |
The first number for comparison. |
|
value2 |
The second number for comparison. |
|
valueN |
Optional additional parameters. Min requires two parameters but optionally accepts additional parameters. |
Notes
The Min function compares the numbers passed and returns the smallest value.
Sample code
This example uses the Min function to return the lesser of the two values passed.
Var d As Double
d = Min(3.01, 4.05) ' returns 3.01
d = Min(3.012, 3.011) ' returns 3.011
Compatibility
All project types on all supported operating systems.