Kepler: Issueshttps://projects.ecoinformatics.org/ecoinfo/https://projects.ecoinformatics.org/ecoinfo/ecoinfo/favicon.ico?14691340362014-03-04T12:24:32ZEcoinformatics Redmine
Redmine Bug #6439 (Closed): Double rounding fails in some cases while evaluating Expressionshttps://projects.ecoinformatics.org/ecoinfo/issues/64392014-03-04T12:24:32ZOwsiak Michalmichal.owsiak@man.poznan.pl
<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>