pub fn format_float_with_unit(value: f64, unit: &str) -> EcoString
Converts a float to a string representation with a precision of two decimal places, followed by a unit.