[fpc-pascal] round(2.5)=2

Florian Klämpfl florian at freepascal.org
Wed Jun 13 17:42:20 CEST 2018



Am 13. Juni 2018 5:39:08 nachm. schrieb marcov at stack.nl (Marco van de Voort):

> In our previous episode, Sven Barth via fpc-pascal said:
>> Which is what FPC already provides with SetRoundMode() in unit Math.
>>
>> As long as one changes the rounding mode only locally for some calculations
>> and restores it afterwards there should be no problem (the rounding mode
>> can be considered as thread specific as well).
>
> Or soft fpu. (-Cfsoft). Or is that only for 16-bit mode ?

What does it change? -Cfsoft is also IEEE compliant.

> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal






More information about the fpc-pascal mailing list