Skip to content

Commit

Permalink
Change precision
Browse files Browse the repository at this point in the history
  • Loading branch information
timoast committed Sep 27, 2024
1 parent 883fce5 commit 4131d4a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/stats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ pub fn compute_stats(input_file: &str, output_prefix: &str) -> Result<(), Box<dy
idx,
stats.nonzero_count,
stats.sum,
format!("{:.2}", stats.mean()),
format!("{:.2}", stats.variance()),
format!("{:.2}", stats.std_dev()),
format!("{:.4}", stats.mean()),
format!("{:.4}", stats.variance()),
format!("{:.4}", stats.std_dev()),
stats.min,
stats.max
)?;
Expand All @@ -184,9 +184,9 @@ pub fn compute_stats(input_file: &str, output_prefix: &str) -> Result<(), Box<dy
idx,
stats.nonzero_count,
stats.sum,
format!("{:.2}", stats.mean()),
format!("{:.2}", stats.variance()),
format!("{:.2}", stats.std_dev()),
format!("{:.4}", stats.mean()),
format!("{:.4}", stats.variance()),
format!("{:.4}", stats.std_dev()),
stats.min,
stats.max
)?;
Expand Down

0 comments on commit 4131d4a

Please sign in to comment.