CorMath: Min

Min

Returns the minimum of two values.



 Public Function Min(
	  ByRef x As Variant,
	  ByRef y As Variant ) As Variant

Parameters

x
[ByRef] Variant. Value to test as potential min value.
y
[ByRef] Variant. Value to test as potential min value.

Return Values

Variant -  The min value.

Remarks

The values must be of the same type for the comparison to be performed. If X is an IComparable, then the object is used to test for the minimum value.

If both values are equavalent then X is returned.

See Also

Project CorLib Overview

Class CorMath Overview