aboutsummaryrefslogtreecommitdiff
path: root/bin/mean.awk
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-09-08 22:49:28 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-09-08 22:49:28 +1200
commit677d0e5fdc76620253af865ca03fd602c0419047 (patch)
treea47d3e848aace0f9f2d7b7d2443f1e0588fab70a /bin/mean.awk
parentAdd more color-setting attempts to rgl(1df) (diff)
downloaddotfiles-677d0e5fdc76620253af865ca03fd602c0419047.tar.gz
dotfiles-677d0e5fdc76620253af865ca03fd602c0419047.zip
Generalise mean,med,mode,tot(1df) to numbers
Not just integers
Diffstat (limited to 'bin/mean.awk')
-rw-r--r--bin/mean.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mean.awk b/bin/mean.awk
index 4506b3b0..74bdcab3 100644
--- a/bin/mean.awk
+++ b/bin/mean.awk
@@ -4,5 +4,5 @@ END {
# Error out if we read no values at all
if (!NR)
exit(1)
- printf "%u\n", tot / NR
+ print tot / NR
}