summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Weigt <juw@posteo.de>2026-01-18 13:36:54 +0100
committerJulian Weigt <juw@posteo.de>2026-02-04 15:56:45 +0100
commit16ae97c7326060dd3ad1be03cdca2a5615814a3b (patch)
tree88d90d4050cf16fdff29d302f2b55b07e79d7a18
parentb7835be8db1d6d2ef60bbe9e972cb708c0fee8c0 (diff)
Remove error printing from ratio.c.
-rw-r--r--ratio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ratio.c b/ratio.c
index fa7dc17..d16c3e4 100644
--- a/ratio.c
+++ b/ratio.c
@@ -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;
}