array.max()

Returns the largest numeric value in an array. If the array parameter value is an empty array, returns zero. All elements must contain values that can be automatically converted to numeric values.

array.max( )

Returns: Number

This function does not take any arguments.

Examples

number = [10,20,30,40,50,60,70];
res = number.max();
writeDump(res);
number = [0.1,0.2,0.3,0.4,0.5,0.6,0.7];
res = number.max();
writeDump(res);

See also