Max
Last updated
Was this helpful?
Return larger of two numbers
Max(number1=[numeric], number2=[numeric])number1
numeric
true
The first number
number2
numeric
true
The second number
<bx:set myNum1 = 4 >
<bx:set myNum2 = 9 >
<bx:output>The maximum of #myNum1# and #myNum2# numbers is #max( myNum1, myNum2 )#.</bx:output>Result: The maximum of 4 and 9 is 9.
Last updated
Was this helpful?
Was this helpful?
echo( max( 45.94, 34.05 ) );
// outputs 45.94
