Whatever message this page gives is out now! Go check it out!

Max

Last update:
May 18, 2026

Description

Finds the greater of two numbers.

Returns

Numeric

Category

Syntax

Max(number1, number2)

See also

Parameters

Parameter
Description
number1, number2
Numbers

Example

<cfscript>
       num1=-(-50);
       num2=-50;
       WriteOutput("The maximum of the two numbers is: " & Max(num1,num2));
</cfscript>

Output

The maximum of the two numbers is: 50

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page