Function percent_to_ratio
Source pub fn percent_to_ratio(percent: f32) -> f32
Expand description
Converts a percentage to a fraction in 0.0..=1.0.
§Arguments
percent - a percentage, where 100.0 is the whole.
§Returns
The equivalent fraction, percent / 100.