diff options
| author | Julian Weigt <juw@posteo.de> | 2025-12-28 15:01:03 +0000 |
|---|---|---|
| committer | Julian Weigt <juw@posteo.de> | 2026-02-04 15:55:49 +0100 |
| commit | 634f01454f1c0f1a33adc50b5f584e39748ff832 (patch) | |
| tree | a1ddef4c745fdbca225cf10757c0d10522e8d4fa /ratio.c | |
| parent | 1c08f5b7149bdd3ff02c1d1f7f41419e6e813a7c (diff) | |
Print error exponential instead of floating.
Diffstat (limited to 'ratio.c')
| -rw-r--r-- | ratio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -129,6 +129,6 @@ double to_double(rational r){ bool to_string(char* s,rational r){ double f = to_double(r); - sprintf(s,"%llu / %llu = %f +- %.24f",r.n,r.d,f,f*DBL_EPSILON); + sprintf(s,"%llu / %llu = %f +/- %6.1e",r.n,r.d,f,f*DBL_EPSILON); return true; } |
