[fpc-devel] Re: rounding precision error with integer and floating point division

Seth Grover sethdgrover at gmail.com
Fri Nov 18 16:33:53 CET 2011


Florian wrote:

> How should the compiler know that the division should be done using
> double? Using always double slows down calculations. Because the range
> of longword fits into a single as well as 24, fpc uses a single division.
...
> This is not possible. Especially i386/x87 behaves really strange because
> it does calculations always with extended.


Thank you for the explanation. That, together with the link to the
"user changes in 2.2.0" page on the wiki, explains the behavior. I
appreciate your taking the time to respond. Have a great weekend!

-SG

--
This email is fiction. Any resemblance to actual events
or persons living or dead is purely coincidental.

Seth Grover



More information about the fpc-devel mailing list