pub fn quantity(ctx: &Context, number: &str, unit: &str) -> StringExpand description
A number already written followed by its unit, in the interface’s
language: Strings::quantity, else with a plain space between
them. An empty unit gives the number alone.
let ctx = egui::Context::default();
assert_eq!(egui_pop_core::strings::quantity(&ctx, "1.50", "EV"), "1.50 EV");
assert_eq!(egui_pop_core::strings::quantity(&ctx, "3", ""), "3");