bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About fltexpr


From: pourko
Subject: Re: About fltexpr
Date: Mon, 22 Sep 2025 04:50:41 +0200 (CEST)

On Sun, 21 Sep 2025 21:46:44 -0400 Greg Wooledge wrote:
> You can't just pick a random number of digits and decree that what's
> supposed to be a general purpose utility should prematurely round
> floating point values to that level of precision.
> 
> A general purpose utility should retain as much precision as possible.
> 
> If YOU, the programmer...

To be clear, in our particular case, the *programmer* is the one who
writes that C program. He should undoubtedly retain as much precision 
as possible during all the calculations, and then round it correctly 
at the very end. As to the HOW of the "correct rounding", people much 
smarter than me have written papers about it.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]