max

Determines the greater of two numbers.

max(number1, number2) → returns Numeric

max Argument Reference

number1
Required

number2
Required

Examples sample code invoking the max function


Tag Example

<cfset local.myNum1 = 4 /> 
 <cfset local.myNum2 = 9 /> 
 The maximum of the two numbers is <cfoutput>#max(local.myNum1, local.myNum2)#</cfoutput> 
  

Fork me on GitHub