input|round( value )
Name | Type | Description | Required |
---|---|---|---|
value | number | The number that should be rounded off. | Only if the input parameter is omitted. |
This operator rounds off the value that was specified using either the input or the "value" parameter. If both are provided, it is the "value" parameter that will be used. The operator returns the rounded off value.
{15.7|round}
or
{round( 15.7 )}
The following output will be produced: "16".
{8.4|round( 9.7 )}
The following output will be produced: "10".
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.