[][src]Function egui::math::round_to_precision

pub fn round_to_precision(value: f64, decimal_places: usize) -> f64

Round a value to the given number of decimal places.