pub fn format_unit(unit: &str) -> Result<String, FormatUnitError>
Formats an unit to use proper notation.