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