round_to_string

Function round_to_string 

Source
fn round_to_string(value: f32, max_precision: u8) -> String
Expand description

Rounds the value to precision number of decimal places and returns a string to avoid floating point inaccuracies