Spec-Zone.ru › ColdFusion

floor

Returns the integer less than or equal to the input. This function is equivalent to the int function.

floor(number) → returns numeric

  • CF2016+
  • Lucee5.1+
  • BL 1.0.0+
  • See Also: int ceiling round

    Argument Reference

    number numeric
    Required

    A numeric value

    Examples
    Sample code invoking the floor function

    Floor Value of 4.0

    Requires CF 2016+

    floor(4.0)

    Expected Result: 4

    Floor Value of 4.3

    Requires CF 2016+

    floor(4.3)

    Expected Result: 4

    Floor Value of 4.7

    Requires CF 2016+

    floor(4.7)

    Expected Result: 4

    Floor Value of -4.3

    Requires CF 2016+

    floor(-4.3)

    Expected Result: -5

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

    Spec-Zone.ru

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