Min

Description

Determines the smaller of two numbers.

Syntax

Min ( x, y )

Argument

Description

x

The number to which you want to compare y

y

The number to which you want to compare x


Return value

The datatype of x or y, whichever datatype is more precise. If any argument's value is null, Min returns null.

Usage

If either of the values being compared is null, Min returns null.

Examples

This statement returns 4:

Min(4,7)

This statement returns -7:

Min(- 4, - 7)

This statement returns 3.0, a decimal value:

Min(9.2,3.0)

See also

Max

Min method for DataWindows in the section called “Min” in DataWindow Reference.