Path: csiph.com!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: Tim Rentsch Newsgroups: comp.lang.c++ Subject: Re: We have a new standard! Date: Tue, 14 Jan 2025 08:49:09 -0800 Organization: A noiseless patient Spider Lines: 21 Message-ID: <86h6615oje.fsf@linuxsc.com> References: <20250101182527.00004b2f@yahoo.com> <86msg9a9t1.fsf@linuxsc.com> <86a5c1antv.fsf@linuxsc.com> <20250108114450.000028dd@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Tue, 14 Jan 2025 17:49:09 +0100 (CET) Injection-Info: dont-email.me; posting-host="02b2254d8119cf9ced6d49e42a3b0a61"; logging-data="2626294"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/5wUP0fk8zS9uWfFkUoJH6zOjHqdHIgNI=" User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux) Cancel-Lock: sha1:OqMJTLMxJim7IWoMPdSgkFOM+Js= sha1:noIN8Qt1ogxldgVjgn8XXkInhEI= Xref: csiph.com comp.lang.c++:121435 Michael S writes: > On Wed, 8 Jan 2025 08:44:05 +0200 > Paavo Helde wrote: > >> Fast *and* accurate printing of floating-point numbers is not a >> trivial task. AFAIK last significant advances in this area were done >> as late as in 2010. See e.g. >> "http://www.serpentine.com/blog/2011/06/29/ >> here-be-dragons-advances-in-problems-you-didnt-even-know-you-had/" > > I didn't read it, but I want to point that even the question of what is > 'accurate' is not trivial when we consider conversion in > non-default rounding modes. I am not sure that C++ standard contains > sufficient information about it. IIANM the default rounding mode (at least in C) is round to nearest, and even just that is not trivial. (For michael: I sent you an email about the start of 2025; no reply as yet.)