Min

Description

Determines the lesser of two numbers.

Returns

The lesser of two numbers.

Category

Mathematical functions

Function syntax

Min(number1, number2)

See also

Max

Parameters

Parameter

Description

number1, number2

Numbers

Example

<cfscript>
    val1=10
    val2=15
    writeOutput("The min of " & val1 & " and " & val2 & " is: " & min(val1,val2))
</cfscript>

The min of 10 and 15 is: 10

Adobe logo

Sign in to your account