pub fn normalize_amount(amount: f64, precision: u8) -> f64Expand description
Normalizes the given amount by truncating it to the specified decimal precision.
Uses rounding to the nearest integer before truncation to avoid floating-point
precision issues (e.g., 0.1 * 10 becoming 0.9999999999).