Coldfusion Array Max function returns the largest number from the array. If the array parameter value is an empty array then it returns zero.

Syntex
arrayMax(array [, parallel] [, maxThreadCount])
Parameters
array: Name of an array
parallel: True if you want to enable parallel programming.
maxThreadCount: The number of threads the function can execute. The number of threads must be between 1-50. If the value exceeds 50, there is an exception.

Example

<cfscript>
       myArray=[23,76,1,-43,9,112]
       maxVal=ArrayMax(myArray)
       WriteOutput(maxVal)// Returns 112
</cfscript>
<cfscript>
       someArray = arrayNew(1);
       writeOutput(arrayMax(someArray));// Returns 0
</cfscript>