Max

Top  Previous  Next

max(a,b)

 

Returns the maximum value of a and b

 

max(2.4,1.2) = 2.4

 

If a and b are list parameters, the max command will compare each element in the lists and return the maximum 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

 

max($a,$b) = 3,6,5,8,4,7,2,9,9