Function format_float_with_unit

Source
pub fn format_float_with_unit(value: f64, unit: &str) -> EcoString
Expand description

Converts a float to a string representation with a precision of two decimal places, followed by a unit.