Max
Return larger of two numbers
Method Signature
Max(number1=[numeric], number2=[numeric])
Arguments
Argument
Type
Required
Description
Default
number1
numeric
true
The first number
number2
numeric
true
The second number
Examples
Tag Example
<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.
Additional Examples
echo( max( 45.94, 34.05 ) );
// outputs 45.94
Related
Last updated
Was this helpful?