pub fn decimal_prefix(value: f64) -> (f64, &'static str)Expand description
Returns given value as decimal prefix with corresponding value.
Uses 1000-based prefixes k, M, G, …, Y.
§Examples
assert_eq!(ml_progress::decimal_prefix(2000.0), (2.0, "k"));