Min
Return larger of two numbers
Method Signature
Min(number1=[numeric], number2=[numeric])
Arguments
Argument
Type
Required
Description
Default
number1
numeric
true
The first number
number2
numeric
true
The second number
Examples
Minimum of 4 and 9
<bx:set myNum1 = 4 >
<bx:set myNum2 = 9 >
<bx:output>The minimum of #myNum1# and #myNum2# numbers is #min( myNum1, myNum2 )#.</bx:output>
Result: The minimum of 4 and 9 is 4.
Additional Examples
echo( min( 1, 5 ) );
Related
Last updated
Was this helpful?