Function dilla_renderer::engine::to_int

source ·
pub fn to_int(v: Value) -> Result<Value, Error>
Expand description

Create an int from a String or a float.

@deprecated not used anymore in Twig, but perhaps we could keep.

{{ "42.57"|to_int }}
 -> 42.57