Min

Top  Previous  Next

min(a,b)

 

Returns the minimum value of a and b

 

min(2.4,1.2) = 1.2

 

If a and b are list parameters, the min command will compare each element in the lists and return the minimum value of each pair in a new list.

 

$a=1,3,5,6,4,7,2,4,9

$b=3,6,5,8,2,3,1,9,8

 

min($a,$b) = 1,3,5,6,2,3,1,4,8