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 --- ratio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ratio.c') 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