diff options
| author | Julian Weigt <juw@posteo.de> | 2026-01-18 13:36:54 +0100 |
|---|---|---|
| committer | Julian Weigt <juw@posteo.de> | 2026-02-04 15:56:45 +0100 |
| commit | 16ae97c7326060dd3ad1be03cdca2a5615814a3b (patch) | |
| tree | 88d90d4050cf16fdff29d302f2b55b07e79d7a18 /ratio.c | |
| parent | b7835be8db1d6d2ef60bbe9e972cb708c0fee8c0 (diff) | |
Remove error printing from ratio.c.
Diffstat (limited to 'ratio.c')
| -rw-r--r-- | ratio.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -159,7 +159,7 @@ int valuetype_to_string(char* s, rational r){ } else{ double f = valuetype_to_double(r); - sprintf(s,"%llu / %llu = %f… +/- %6.1e",r.n,r.d,f,f*DBL_EPSILON); + sprintf(s,"%llu / %llu = %f…",r.n,r.d,f); } return 0; } @@ -182,7 +182,7 @@ int root_to_string(char* s, rational r, unsigned int p){ if(exptype_is_infinite(p) || p == 1) valuetype_to_string(s,r); else{ double f = pow(valuetype_to_double(r),1.0/p); - sprintf(s,"(%llu / %llu)^1/%i = %f… +/- %6.1e",r.n,r.d,p,f,2*DBL_EPSILON*f); + sprintf(s,"(%llu / %llu)^1/%i = %f…",r.n,r.d,p,f); } return 0; } |
