Skip to content

Commit

Permalink
chore: rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jqnatividad committed Dec 20, 2024
1 parent c5839eb commit 3e4e7cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1302,11 +1302,12 @@ impl ColumnNameParser {
}
}

#[inline]
#[inline]
/// Rounds a floating point number to a specified number of decimal places.
///
/// This function takes a 64-bit floating point number and rounds it to the specified number of decimal places
/// using "Bankers Rounding" (Midpoint Nearest Even) strategy. It returns the result as a String.
/// This function takes a 64-bit floating point number and rounds it to the specified number of
/// decimal places using "Bankers Rounding" (Midpoint Nearest Even) strategy. It returns the result
/// as a String.
///
/// # Arguments
///
Expand All @@ -1316,7 +1317,6 @@ impl ColumnNameParser {
/// # Returns
///
/// * A String containing the rounded number with trailing zeros removed and -0.0 normalized to 0.0
///
pub fn round_num(dec_f64: f64, places: u32) -> String {
use rust_decimal::{Decimal, RoundingStrategy};

Expand Down

0 comments on commit 3e4e7cb

Please sign in to comment.