<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 17, 2014 at 6:21 PM, Camille Troillard <span dir="ltr"><<a href="mailto:lists@tuli.pe" target="_blank">lists@tuli.pe</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is it because of some rounding behaviour?</blockquote></div><br>It is due to the representation. A floating point number is really a rational number, which has been constructed in a way to make most numbers readily representable in the notation. This means some numbers can be represented in an exact way, whereas other numbers can't. As Bob suggests, there are also rounding, which will sometimes make a number being slightly off seem to be correct.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><br clear="all"><div><br></div>-- <br>J.
</div></div>