Function minijinja::filters::round

source ·
pub fn round(value: Value, precision: Option<i32>) -> Result<Value, Error>
Available on crate feature builtins only.
Expand description

Round the number to a given precision.

Round the number to a given precision. The first parameter specifies the precision (default is 0).

{{ 42.55|round }}
  -> 43.0