least

Gets the least (minimum) value in a set.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X X X X

Syntax

expr least(data1,[data2[,...]])
expr       data1

Description

data specifies a items to compare. Mixed datatype data items are converted to the closest approximation. The resulting datatype depends on the datatype of the greatest item.

Example

Finds the earliest of several datetime values.
printf("The earliest date is " ^^ least(dt1,dt2,dt3));