Min Procedure

Version 7

Returns the smaller value of two values.

Syntax

[ dMin = ] Min ( x, y )

The Min procedure syntax has the following parts:

 

Name

Type

Description

dMin

Double

Return value - the smaller of two values

x

Val Double

First value

y

Val Double

Second value

Comments

You can pass variants of numeric values.

If you pass non-numeric values, either compile error or run-time error will ensue.

Example

 

print "-- Min(3, 1) => "; Min(3, 1)

print "-- Min(20.5, 10.9) => "; Min(20.5, 10.9)

vrA=40   ! vrA and vrB are two variant variables

vrB=60

print "-- Min(vrA, vrB) => "; Min(vrA, vrB)

 

! the following is the results of each print statement above:

-- Min(3, 1) => 1

-- Min(20.5, 10.9) => 10.9

-- Min(varA, varB) => 40

See Also

Max