[fpc-pascal] round(2.5)=2

Michael Schnell mschnell at lumino.de
Wed Jun 13 10:19:56 CEST 2018


On 12.06.2018 23:12, Klaus Hartnegg wrote:
> The only *reliable* solution appears to be compiling a modified 
> version of FreePascal.
>
It would make the round function a lot slower not to simply rely on the 
hardware.

And in fact the only *reliable* solution is *not ever* to rely on exact 
values of floats.

-Michael




More information about the fpc-pascal mailing list