round_to_default_precision

Function round_to_default_precision 

Source
pub fn round_to_default_precision(value: f64) -> f64
Expand description

Rounds a floating-point value to the default precision. For example, round_to_default_precision(1.23456) returns 1.2. /// # Arguments

  • value - The value to round.

ยงReturns

The rounded value.