summaryrefslogtreecommitdiff
path: root/sum2.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 /sum2.awk
parent2482727a6902e44e6a68236f878f5f9bf7947bd2 (diff)
adjusted print statements to use OFMT, OFS, and ORS;
Diffstat (limited to 'sum2.awk')
-rw-r--r--sum2.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/sum2.awk b/sum2.awk
index 413f633..979d133 100644
--- a/sum2.awk
+++ b/sum2.awk
@@ -14,5 +14,5 @@ NR==1 { nf_max = NF }
END {
for (i=1; i<=NF; i++)
- printf("%.18g%s", sum[i], i < nf_max ? OFS : ORS)
+ printf(OFMT "%s", sum[i], i < nf_max ? OFS : ORS)
}