round

Round a floating point value to the nearest integer.

Example:

{{ 3.5|round }}

Results in the integer value 4.

Edit on GitHub

rand Numbers round_significant

Referred by

Filters

Filters transform template variables before they are rendered.