Skip to main content

format_value

Function format_value 

Source
pub fn format_value(v: f64, step: f64) -> String
Expand description

Formats v with just enough decimals to tell ticks step apart. Values of a million or more use a compact k, M, B or T suffix.