diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-08 22:49:28 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-09-08 22:49:28 +1200 |
commit | 677d0e5fdc76620253af865ca03fd602c0419047 (patch) | |
tree | a47d3e848aace0f9f2d7b7d2443f1e0588fab70a /bin/med.awk | |
parent | Add more color-setting attempts to rgl(1df) (diff) | |
download | dotfiles-677d0e5fdc76620253af865ca03fd602c0419047.tar.gz dotfiles-677d0e5fdc76620253af865ca03fd602c0419047.zip |
Generalise mean,med,mode,tot(1df) to numbers
Not just integers
Diffstat (limited to 'bin/med.awk')
-rw-r--r-- | bin/med.awk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/med.awk b/bin/med.awk index b4a899a1..34d81c41 100644 --- a/bin/med.awk +++ b/bin/med.awk @@ -13,7 +13,7 @@ END { } else { med = (vals[NR/2] + vals[NR/2+1]) / 2 } - printf "%u\n", med + print med if (warn) exit(1) } |