<html>
<head>
<style>
body {
  font-family: Verdana, sans-serif;
  font-size: 0.8em;
  color:#484848;
}
h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin: 0px; }
h1 { font-size: 1.2em; }
h2, h3 { font-size: 1.1em; }
a, a:link, a:visited { color: #2A5685;}
a:hover, a:active { color: #c61a1a; }
a.wiki-anchor { display: none; }
hr {
  width: 100%;
  height: 1px;
  background: #ccc;
  border: 0;
}
.footer {
  font-size: 0.8em;
  font-style: italic;
}
</style>
</head>
<body>
<span class="header"></span>
Issue #6439 has been reported by Owsiak Michal.
<hr />
<h1><a href="https://projects.ecoinformatics.org/ecoinfo/issues/6439">Bug #6439: Double rounding fails in some cases while evaluating Expressions</a></h1>

<ul>
<li>Author: Owsiak Michal</li>
<li>Status: New</li>
<li>Priority: Urgent</li>
<li>Assignee: Derik Barseghian</li>
<li>Category: actors</li>
<li>Target version: 2.3.0</li>
  <li>Bugzilla-Id: </li>
</ul>

<p>It seems that addition of doubles can produce values slightly different than they should to be.</p>


        <p>Please take a look at attached workflow (simple_error.xml).</p>


        <p>Condition that should be satisfied to escape the loop is: 1.7 > 1.5 + 0.1</p>


        <p>However, loop is interrupted sooner, because of incorrect calculation of doubles. Value of "p" is set to: 1.6000000000000003</p>


        <p>This, of course, makes it impossible to use doubles as check points for the loops.</p>


        <p>However, it seems that casting to string and back works fine (take a look at second workflow - simple.xml)</p>


        <p>Cheers</p>


        <p>Michal</p>


<hr />
<span class="footer"><p>You have received this notification because you have either subscribed to it, or are involved in it.<br />To change your notification preferences, please click here: <a class="external" href="https://projects.ecoinformatics.org/ecoinfo/my/account">https://projects.ecoinformatics.org/ecoinfo/my/account</a></p></span>
</body>
</html>