Skip to main content

display_scale

Function display_scale 

Source
pub fn display_scale(peak: f64, unit: &str) -> (f64, &'static str)
Expand description

A factor and an SI prefix that bring a value of this size into a readable range: 0.00004 m reads as 40 µm.