Introduction
Introduction Statistics Contact Development Disclaimer Help
tprint output in full double precision - numtools - perform numerical operation…
git clone git://src.adamsgaard.dk/numtools
Log
Files
Refs
README
LICENSE
---
commit 6814924cd230827d0b9edc95ab7156125665d394
parent b14e514a2e52615aec6321ec8e308653323b36ef
Author: Anders Damsgaard <[email protected]>
Date: Sun, 12 Sep 2021 07:30:32 +0200
print output in full double precision
Diffstat:
M transpose.c | 2 +-
M util.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/transpose.c b/transpose.c
t@@ -32,7 +32,7 @@ main(void)
}
for (i = 0; i < nf; i++) {
for (j = 0; j < nr; j++) {
- printf("%g", vals[j][i]);
+ printf("%.17g", vals[j][i]);
if (j < nr - 1)
printf(DELIMSTR);
}
diff --git a/util.c b/util.c
t@@ -37,7 +37,7 @@ printarr(double *arr, size_t len)
size_t i;
for (i = 0; i < len; i++) {
- printf("%g", arr[i]);
+ printf("%.17g", arr[i]);
if (i < len)
printf(DELIMSTR);
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.