Skip to main content

format_decimal

Function format_decimal 

Source
pub fn format_decimal(v: f64, fraction_digits: usize) -> String
Expand description

Render v in the current locale (tracked, like crate::compare), so a label inside a reactive closure re-renders when the locale switches.