From 19474ebf54b417771828c0bb1484bfabd9be3a93 Mon Sep 17 00:00:00 2001 From: Julian Weigt Date: Fri, 9 Jan 2026 17:44:47 +0000 Subject: Print two digits and other formulations. --- charf.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/charf.c b/charf.c index 6a35d3f..2552b06 100644 --- a/charf.c +++ b/charf.c @@ -166,13 +166,15 @@ void compute(EXPTYPE p, int D, VALUETYPE* f, VALUETYPE* records){ VALUETYPE r = ratio(intdMfp, intdfp); double t = to_double(r); - if(over_threshold_charf(t,k) && is_greater(r,records[k])){ + if( + over_threshold_charf(t,k) && + is_greater(r,records[k])){ /*extra check for printing only because in error mode for some reason floats randomly seem to increase by tiny amounts*/ if(t>to_double(records[k])){ - char s[256]; + char s[1024]; sprintf(s,"f: "); int l = 3; - for(int i=0; i