[fpc-pascal] round(2.5)=2
Marco van de Voort
marcov at stack.nl
Wed Jun 13 17:38:55 CEST 2018
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 ?
More information about the fpc-pascal
mailing list