From 96916ac21687177bdf519d51919feeda5376b09f Mon Sep 17 00:00:00 2001 From: Julian Weigt Date: Thu, 15 Jan 2026 22:31:04 +0100 Subject: =?UTF-8?q?Add=20"=E2=80=A6"=20to=20string=20conversion=20output.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- double-error.c | 2 +- ratio.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/double-error.c b/double-error.c index 16c7e1e..1ab0aec 100644 --- a/double-error.c +++ b/double-error.c @@ -23,7 +23,7 @@ double_error int_to_exptype(double d){ } bool to_string(char* s, double_error de){ - sprintf(s,"%f +/- %6.1e",de.v,de.e); + sprintf(s,"%f… +/- %6.1e",de.v,de.e); return true; } diff --git a/ratio.c b/ratio.c index 747aeab..3bb5ef3 100644 --- a/ratio.c +++ b/ratio.c @@ -137,12 +137,12 @@ double to_double(rational r){ bool to_string(char* s, rational r){ double f = to_double(r); - sprintf(s,"%llu / %llu = %f +/- %6.1e",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; } bool root_to_string(char* s, rational r, unsigned int p){ double f = pow(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… +/- %6.1e",r.n,r.d,p,f,2*DBL_EPSILON*f); return true; } -- cgit v1.2.3