LEAST: Returning the Smallest Value

How to:

With two or more arguments, LEAST returns the smallest (minimum-valued) argument. The arguments are compared using the following rules:

Syntax: How to Return the Smallest Value

LEAST(value1, value2, ... , valuen)

where:

value1, value2, ... , valuen

Numeric or alphanumeric

Are the values to be compared.

Example: Returning the Smallest Value

LEAST returns the smallest argument.

LEAST(X,Y,Z)

For X=2, Y=0, and Z=-1, the result is -1.

For X='B', Y='A', and Z='C', the result is 'A'.

WebFOCUS

Feedback