Determines the greater of two numbers.
max(number1, number2)
→ returns numeric
<cfset myNum1 = 4 />
<cfset myNum2 = 9 />
<cfoutput>The maximum of #myNum1# and #myNum2# numbers is #max(myNum1, myNum2)#.</cfoutput>
Expected Result: The maximum of 4 and 9 is 9.
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.