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 to_integer

Referred by

Filters

Filters transform template variables before they are rendered.