pub fn round(value: Value, precision: Option<i32>) -> Result<Value, Error>
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