%MIN

<< Click to Display Table of Contents >>

Navigation:  Reference > Functions >

%MIN

This function selects the smallest value from the list of arguments.

Forms of use:

DW wvar = %MIN(list),

DI ivar = %MIN(list),

The list should contain two or more arithmetic expressions separated by commas.

If the destination is an ivar, the smallest value is rounded to the nearest whole number.

If all the values in the list are undefined the result will be undefined

Examples of MIN function:

dw $small=%min($w5,10.0),

di $itss=1-%min(0,$i2-2,$i3-3),

dw $cellb=%min(#1(c0,r1),#1(c0,r2)),