[fpc-pascal] round(2.5)=2

Michael Schnell mschnell at lumino.de
Wed Jun 13 11:07:50 CEST 2018


On 12.06.2018 23:12, Klaus Hartnegg wrote:
>   writeln (round(a*1.1));

As with usual float formats 1.1 can't be represented exactly, the result 
can't be considered any precise value.

-Michael



More information about the fpc-pascal mailing list