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

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy