tinymist_std::typst::foundations::repr

Function format_float_with_unit

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.