Double comparison using EXPECT_NEAR fails In QNX platform, but not in Linux
<p>Test Case is like this:</p>

<pre><code>EXPECT_NEAR(aVal, bVal, Delta);
</code></pre>

<p>In Linux: parameters values receptively like below: </p>

<pre><code>aVal = 14.661583000000000 
bVal = 14.661583000000000 
Delta = 1.0e-15 
</code></pre>

<p>Since, aVal and bVal are same, Hence this testcase passing on Linux. </p>

<p>In QNX:  What is happening I don't know, </p>

<pre><code>aVal = 14.661583000000000
bVal = 14.661582999999998
Delta = 1.0e-15 
</code></pre>

<p>Since, aVal and bVal are different, Hence this test case is fails.</p>

<pre><code>NOTE: aVal, bVal and Delta are in double data type.
</code></pre>

<p>I found out if we increase delta values like "1.0e-10" Testcase will pass I don't want to do that, because I don't want to increase delta value here. </p>

<p>Could somebody explain me, why in QNX has like this kind of problem, can't it round the double value inside when it compare with other value ? And how to solve this problem explicitly ?</p>