Spec-Zone.ru › ColdFusion

ceiling

Determines the closest integer that is greater than a specified floating point number.

ceiling(number) → returns numeric

  • CF
  • Lucee
  • BL 1.0.0+
  • See Also: floor round

    Argument Reference

    number numeric
    Required

    The number for which to get the ceiling

    Examples
    Sample code invoking the ceiling function

    Ceiling of 1.1

    ceiling(1.1)

    Expected Result: 2

    Ceiling of 1

    When ceiling an integer the result is equal to the value passed

    ceiling(1)

    Expected Result: 1

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

    Spec-Zone.ru

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