Skip to content

Commit

Permalink
Showing mean with two digit precision
Browse files Browse the repository at this point in the history
  • Loading branch information
PieterOlivier committed Nov 3, 2024
1 parent 54a9c53 commit 8d35fc9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ void printFrequencyTableStats(str label, FrequencyTable frequencyTable, str unit
if (ninetyFivePercentile == -1 && cumulativeCount >= ninetyFivePercentileLimit) {
ninetyFivePercentile = val;
}
}
total += val*count;
Expand All @@ -340,7 +340,7 @@ void printFrequencyTableStats(str label, FrequencyTable frequencyTable, str unit
if (totalCount == 0) {
print("-");
} else {
int mean = total/totalCount;
num mean = round(toReal(total)/totalCount, 0.01);
print(right("<mean>", statFieldWidth));
print(right("<median>", statFieldWidth));
print(right("<ninetyFivePercentile>", statFieldWidth));
Expand Down

0 comments on commit 8d35fc9

Please sign in to comment.