summaryrefslogtreecommitdiff
path: root/sum1.awk
diff options
context:
space:
mode:
authorwukong <wukong@longaeva>2018-06-16 23:38:02 -0700
committerwukong <wukong@longaeva>2018-06-16 23:38:02 -0700
commit4916e9b13765de970deff094abb3eb50c663834a (patch)
tree11d90adf7b1d7179298550bee866aa2ed7aa8a75 /sum1.awk
parent39d1486694b3baac5bfafe11f73e179530d6c109 (diff)
bumped up number of printed digits
Diffstat (limited to 'sum1.awk')
-rw-r--r--sum1.awk4
1 files changed, 2 insertions, 2 deletions
diff --git a/sum1.awk b/sum1.awk
index 2f5a041..8617e50 100644
--- a/sum1.awk
+++ b/sum1.awk
@@ -14,7 +14,7 @@
END {
for (i=1; i<=nf_max; i++) {
- printf("%g", sum[i])
- (i < nf_max) ? printf(" ") : printf("\n")
+ printf("%.18g", sum[i])
+ printf((i < nf_max) ? OFS : ORS)
}
}