<div dir="ltr"><div class="gmail_extra">I accepted your comment. But generally we expected full value. I did same in another scripting language like php. It is given correct result. Thats why I asked this question.</div><div class="gmail_extra">
<div class="gmail_extra"><?php</div><div class="gmail_extra">$a=2452.45*100;</div><div class="gmail_extra">echo $a;</div><div class="gmail_extra">exit;</div><div class="gmail_extra">?></div><div class="gmail_extra">
<span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium">245245</span><br></div><div class="gmail_extra"><span style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"><br>
</span></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><br><div class="gmail_quote">On Wed, Nov 27, 2013 at 7:05 AM, Dave Cottlehuber <span dir="ltr"><<a href="mailto:dch@jsonified.com" target="_blank">dch@jsonified.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On 27. November 2013 at 02:33:05, Sanath Prasanna (<a href="mailto:ahe.sanath@gmail.com">ahe.sanath@gmail.com</a>) wrote:<br>

><br>
> Hi all,<br>
> when running following sample in ERL shell, I got wrong value.<br>
> What is the<br>
> reason for this?<br>
><br>
> 2452.45*100. = 245244.99999999997<br>
><br>
> It should be 245245.0 or 245245<br>
<br>
</div>Hi Sanath,<br>
<br>
Unfortunately not, welcome to Computing :-), the shell is right.<br>
<div class="im"><br>
> Then all the calculations became wrong in my program.<br>
> Are there any idea regarding above?<br>
><br>
> Br,<br>
> Sanath<br>
<br>
</div>The best explanation Iíve found is here:<br>
<br>
† † <a href="http://floating-point-gui.de/" target="_blank">http://floating-point-gui.de/</a><br>
<br>
For an in-depth explanation, read†<br>
<br>
† ††<a href="http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html" target="_blank">http://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html</a><br>
<br>
A+<br>
<span class=""><font color="#888888">Dave<br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div></div>