[fpc-pascal] floating point an FPC
ik
idokan at gmail.com
Fri Feb 26 11:37:03 CET 2010
Hello,
I've made a small test:
if (0.1+0.2) = 0.3 then
The only compiler/interpator that actually tells that it equal is FPC.
I've tested it using Javascript (in Firefox), Ruby, Python, C (gcc) and
Perl.
Except FPC, everyone tells that 0.1+0.2 = 0.30000000000000004
Can someone explain how FPC see the result and why others does not see it
like that ?
Thanks,
Ido
http://ik.homelinux.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20100226/23b0a76a/attachment.html>
More information about the fpc-pascal
mailing list