[fpc-devel] Re: rounding precision error with integer and floating point division
Fair enough. Jonas, thanks for the link and explanation. I'll just be more aware of what I'm doing when it involves calculations like this and do the cast when needed. -SG -- This email is fiction. Any resemblance to actual events or persons living or dead is purely coincidental. Seth Grover ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
Re: [fpc-devel] Re: rounding precision error with integer and floating point division
On 18 Nov 2011, at 14:41, Seth Grover wrote: Fair enough. Jonas, thanks for the link and explanation. I'll just be more aware of what I'm doing when it involves calculations like this and do the cast when needed. One command line parameter was added later on to facilite dealing with such situations: -CF32 and -CF64. Those specify the minimal precision that will be used for floating point constants (-CF80 is not supported due to implementation reasons). Jonas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] Re: rounding precision error with integer and floating point division
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 ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel
[fpc-devel] Re: rounding precision error with integer and floating point division
Jonas wrote: One command line parameter was added later on to facilitate dealing with such situations: -CF32 and -CF64. Those specify the minimal precision that will be used for floating point constants Terrific, thanks. I'll check out using that as a possibility as well. -SG -- This email is fiction. Any resemblance to actual events or persons living or dead is purely coincidental. Seth Grover ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel