Post Reply 
Is super-accuracy matters?
10-06-2023, 04:36 PM
Post: #1
Is super-accuracy matters?
(10-06-2023 08:40 AM)J-F Garnier Wrote:  The main goal of the PI/4 double precision value was not to manage huge exact arguments, since this has no real-life interest and there will always be a limit unless storing 500 digits, but to guarantee 12-digit accuracy trig results for all "realistic" arguments, especially SIN(X) with X close to PI.

I've been thinking about this for a while.

Many years ago, I made strod-fast.c that return correctly rounded decimal → binary result.
To do this required, on rare occasion, upto 751 digits exact math calculations.
(all this hard work to get a 1 bit answer of which float to return!)

If we can accept very rare 1 ULP error, there is no need for all this (see strtod-lite.c)

Someone asked why I wasted time getting perfect (correctly rounded) result.
Float is "supposed" to be fuzzy ... 1 ULP error doesn't matter.

I have no good answer, and asked Rick Regan, blog author of https://www.exploringbinary.com/
This is a great site, if we want to know about binary/decimal.

Comments from https://www.exploringbinary.com/visual-c...ll-broken/
Albert Wrote:Just curious, how to you convince someone who say the last ULP bad conversion does not matter ?
Rick Regan Wrote:I don’t know how to convince someone. I guess it depends on the context of their application. On the other hand, many software products have come to support correct conversion over the years that I’ve been writing about conversion inaccuracy, so that might be an indirect argument in itself.

Answer somehow felt unsatisfactory. We do it because others do it?

Now, I think we should shoot for better accuracy, whether or not it matters in real life.
No need to convince others!

What do you think?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Is super-accuracy matters? - Albert Chan - 10-06-2023 04:36 PM
RE: Is super-accuracy matters? - Jlouis - 10-06-2023, 04:42 PM
RE: Is super-accuracy matters? - Jlouis - 10-06-2023, 05:05 PM
RE: Is super-accuracy matters? - EdS2 - 10-07-2023, 07:00 AM
RE: Is super-accuracy matters? - EdS2 - 10-07-2023, 07:24 AM
RE: Is super-accuracy matters? - KeithB - 10-24-2023, 01:33 PM
RE: Is super-accuracy matters? - vaklaff - 10-24-2023, 03:38 PM
RE: Is super-accuracy matters? - johnb - 10-24-2023, 03:46 PM
RE: Is super-accuracy matters? - johnb - 10-09-2023, 07:12 PM
RE: Is super-accuracy matters? - Johnh - 10-08-2023, 04:37 AM
RE: Is super-accuracy matters? - johnb - 10-09-2023, 07:24 PM
RE: Is super-accuracy matters? - dm319 - 10-13-2023, 03:08 PM
RE: Is super-accuracy matters? - dm319 - 10-10-2023, 07:33 PM
RE: Is super-accuracy matters? - KeithB - 10-13-2023, 03:21 PM
RE: Is super-accuracy matters? - johnb - 10-13-2023, 03:36 PM
RE: Is super-accuracy matters? - johnb - 10-14-2023, 03:38 AM
RE: Is super-accuracy matters? - KeithB - 10-13-2023, 08:57 PM
RE: Is super-accuracy matters? - DA74254 - 10-20-2023, 07:02 AM
RE: Is super-accuracy matters? - mfleming - 10-20-2023, 12:07 PM
RE: Is super-accuracy matters? - EdS2 - 10-20-2023, 08:55 AM
RE: Is super-accuracy matters? - johnb - 10-20-2023, 04:40 PM
RE: Is super-accuracy matters? - Johnh - 10-20-2023, 07:48 PM
RE: Is super-accuracy matters? - dm319 - 10-30-2023, 11:46 AM
RE: Is super-accuracy matters? - EdS2 - 10-20-2023, 09:06 PM
RE: Is super-accuracy matters? - EdS2 - 10-24-2023, 05:20 PM
RE: Is super-accuracy matters? - EdS2 - 11-18-2023, 09:13 AM
RE: Is super-accuracy matters? - klesl - 11-18-2023, 09:24 AM
RE: Is super-accuracy matters? - Johnh - 11-18-2023, 11:11 AM
RE: Is super-accuracy matters? - johnb - 11-20-2023, 11:41 PM
RE: Is super-accuracy matters? - nickapos - 11-18-2023, 05:24 PM
RE: Is super-accuracy matters? - Pekis - 11-19-2023, 08:44 PM
RE: Is super-accuracy matters? - klesl - 11-18-2023, 01:53 PM



User(s) browsing this thread: 3 Guest(s)