Skip to main content

format_general_fit

Function format_general_fit 

Source
pub fn format_general_fit(n: f64, max_chars: usize) -> Option<String>
Expand description

General format squeezed into max_chars characters. Excel shows fewer decimals, then scientific notation, then “####” when a column is narrow; None means the caller paints “####”.