[fpc-pascal] speed of real calculations

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Oct 18 11:57:13 CEST 2006


On 18 okt 2006, at 11:20, Marc Santhoff wrote:

> Divisions do make a difference for me. How can this setting be  
> made, is
> there a compiler sitch involved or some symbol to define?

http://community.freepascal.org:10000/docs-html/rtl/math/ 
setprecisionmode.html

Always check the result, since on architectures where this cannot be  
changed you will get back whatever is used. On other architectures,  
like PPC, the precision simply depends on the arguments and cannot be  
changed at run time.


Jonas



More information about the fpc-pascal mailing list