pub fn format_as_float(f: f64, short: bool) -> String
Format supplied value as a float with 2 decimal places.