summaryrefslogtreecommitdiff
path: root/sum1.awk
diff options
context:
space:
mode:
authorwukong <wukong@longaeva>2018-06-18 04:00:29 -0700
committerwukong <wukong@longaeva>2018-06-18 04:00:29 -0700
commitc44ac59acbb18c6982e180637566dec8eb9baebd (patch)
tree66ea1e51ed0a60b2fdf48ea1b1c5b852007a05fd /sum1.awk
parent2482727a6902e44e6a68236f878f5f9bf7947bd2 (diff)
adjusted print statements to use OFMT, OFS, and ORS;
Diffstat (limited to '')
-rw-r--r--sum1.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/sum1.awk b/sum1.awk
index 8617e50..61d96e0 100644
--- a/sum1.awk
+++ b/sum1.awk
@@ -14,7 +14,7 @@
END {
for (i=1; i<=nf_max; i++) {
- printf("%.18g", sum[i])
+ printf(OFMT, sum[i])
printf((i < nf_max) ? OFS : ORS)
}
}