Function round_to_precision
Source pub fn round_to_precision(value: f64, precision: i32) -> f64
Expand description
Rounds a floating-point value to the specified precision.
For example, round_to_precision(1.23456, 100.0) returns 1.23.
§Arguments
value - The value to round.
precision - The precision
§Returns
The rounded value.