<< Click to Display Table of Contents >> Navigation: Reference > Functions > %MAX |
This function selects the greatest value from the list of arguments.
Forms of use:
DW wvar = %MAX(list),
DI ivar = %MAX(list),
The list should contain two or more arithmetic expressions separated by commas.
If the destination is an ivar, the greatest value is rounded to the nearest whole number.
Examples of MAX function:
dw $big=%max(100.0,$w4,$w5),
di $itbb=%max($i1,$i2*2,$i3*3)+2,
dw $cellt=%max(#1(c1,r1),#1(c1,r2)),