pub fn minimal_precision_string(value: f64) -> StringExpand description
Generate a “minimal precision” string for the f64 value.
The intuition behind this format is to use as few decimal values as possible, without loss of visual accuracy. We want to be able to distinguish distinct values. Example: 1.111 vs 1.2 -> 1.1 vs 1.2 1.011 vs 1.2 -> 1.01 vs 1.2
See unit tests for more examples.