[fpc-pascal] Freepascal Floating Point Issue

Peter peter at pblackman.plus.com
Tue Aug 22 18:08:02 CEST 2017


Hi James,

Its unlikely that 999.999 has an EXACT representation in floating point.

999.99900000000002  maybe the closest value at your chosen precision.

Extended type has more precision, but still probably won't be exact.


Regards,
Peter B




More information about the fpc-pascal mailing list