Spec-Zone.ru › ColdFusion

min

Determines the lesser of two numbers.

min(number1, number2) → returns numeric

  • CF
  • Lucee
  • BL 1.0.0+
  • See Also: max arrayMin arrayMax

    Argument Reference

    number1 numeric
    Required

    number2 numeric
    Required

    Examples
    Sample code invoking the min function

    Minimum of 4 and 9

    <cfset myNum1 = 4 /> 
    <cfset myNum2 = 9 /> 
    <cfoutput>The minimum of #myNum1# and #myNum2# numbers is #min(myNum1, myNum2)#.</cfoutput>

    Expected Result: The minimum of 4 and 9 is 4.

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/min

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API