Such a precise class would be nice, though. With the suitable methods for resolving equations and similar it would be very cool. :)
sin(b*x²)=a :)
/ Mirar
Previous text:
2003-02-25 13:38: Subject: Re: Do we have a floatingpoint bug?
So, let's take another example. ln(1)
It's simply not possible to store all numbers correctly unless you do not do any of the actual calculations, instead storing the formulas all the time.
That might be exactly what you want, but it's not what you fwant when you write games or video-players, just to take two totally arbitrary examples.
Say that you have a scrolltext that should move according to sin(xpos) + cos(frame/10) or something, you would get a very slow scrolltext if you try to calculate it exactly.
/ Per Hedbor ()