This is the old documentation center for eZ Publish 4. We are currently migrating the eZ Publish documentation to http://confluence.ez.no the eZ Publish 5 documentation platform. Documentation for the eZ Publish legacy components are still located on this site, as well as all documentation for earlier releases.

floor

Summary

Returns the next lowest integer value of input or parameter.

Usage

input|floor( value )

Parameters

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

Returns

Integer (rounded down version of input/parameter).

Description

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

Examples

Example 1

{256.7|floor}

or

{floor( 256.7 )}

The following output will be produced: "256".

Example 2

{999.2|floor( 256.7 )}

The following output will be produced: "256".

Balazs Halasy (05/02/2004 11:46 am)

Balazs Halasy (04/05/2005 4:14 pm)


Comments

There are no comments.