[fpc-pascal] Freepascal Floating Point Issue
Sven Barth
pascaldragon at googlemail.com
Tue Aug 22 18:36:50 CEST 2017
Am 22.08.2017 18:11 schrieb "Peter" <peter at pblackman.plus.com>:
>
> 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.
Additionally Extended is not cross platform.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170822/eb8dbc6a/attachment.html>
More information about the fpc-pascal
mailing list