From df2a563e395da972737285319130567f92eb5002 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Thu, 8 Feb 2024 15:42:17 +0100 Subject: [PATCH] fix printf template string --- squiggle_more.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/squiggle_more.c b/squiggle_more.c index 7fe492d..4441ce2 100644 --- a/squiggle_more.c +++ b/squiggle_more.c @@ -216,13 +216,13 @@ void array_print_stats(double xs[], int n) double std = array_std(xs, n); printf("| Statistic | Value |\n" "| --- | --- |\n" - "| Mean | %lf |\n" - "| Median | %lf |\n" - "| Std | %lf |\n" - "| 90% confidence interval | %lf to %lf |\n" - "| 80% confidence interval | %lf to %lf |\n" - "| 50% confidence interval | %lf to %lf |\n" - mean, median, std, ci_90.low, ci_90.high, ci_80.low, ci_80.high, ci_50.low, ci_50.high); + "| Mean | %lf |\n" + "| Median | %lf |\n" + "| Std | %lf |\n" + "| 90%% confidence interval | %lf to %lf |\n" + "| 80%% confidence interval | %lf to %lf |\n" + "| 50%% confidence interval | %lf to %lf |\n", + mean, median, std, ci_90.low, ci_90.high, ci_80.low, ci_80.high, ci_50.low, ci_50.high); } void array_print_histogram(double* xs, int n_samples, int n_bins)