[erlang-questions] Maths Problem -> 2452.45*100. = 245244.99999999997

Sanath Prasanna <>
Wed Nov 27 02:28:38 CET 2013


Hi all,
when running following sample in ERL shell, I got wrong value. What is the
reason for this?

2452.45*100. = 245244.99999999997

It should be 245245.0 or 245245


Then all the calculations became wrong in my program.
Are there any idea regarding above?

Br,
Sanath
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20131127/16ac5269/attachment.html>


More information about the erlang-questions mailing list