[fpc-pascal] round(2.5)=2

Michael Schnell mschnell at lumino.de
Wed Jun 13 10:17:05 CEST 2018


On 12.06.2018 23:12, Klaus Hartnegg wrote:
>
> No, it does not depend on the hardware, but on the setting of $N. 
> Turbo Pascal with $N+ rounds like FreePascal. But the default is $N-. 
> In this mode Turbo Pascal always rounds up.
>
What exactly does $N in Turbo pascal mean ? Obviously it in this case it 
(at least for round() ) does not simply use the hardware for theĀ  
calculation (as fpc does).

-Michael



More information about the fpc-pascal mailing list