ibexa

Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

ceil

Summary

Returns the next highest integer value of input or parameter.

Usage

input|ceil( value )

Parameters

NameTypeDescriptionRequired
value number Value to be rounded up. Only if the input parameter is omitted.

Returns

Integer (rounded up version of input/parameter).

Description

This operator returns the next highest integer value by rounding up either the input or the "value" parameter. If both are provided, it is the "value" parameter that will be used.

Examples

Example 1

{1.5|ceil}

or

{ceil( 1.5 )}

The following output will be produced: "2".

Example 2

{5.5|ceil( 8.2 )}

The following output will be produced: "9".

Balazs Halasy (05/02/2004 10:45 am)

Balazs Halasy (04/05/2005 2:12 pm)


Comments

There are no comments.