C# is there a problem with division?
<p>This is a piece of my code, it is called every second, after about 10 seconds the values start to become weird (see below):</p>

<pre><code>double a;
double b;

for (int i = 0; i &lt; currAC.Length; i++ )
{                 
    a = currAC[i];
    b = aveACValues[i];
    divisor = (a/b);
    Console.WriteLine("a = " + a.ToString("N2") + "\t" + "b = " + b.ToString("N2"));
    Console.WriteLine("divisor = " + divisor);
    Console.WriteLine("a+b = " + (a+b));
}
</code></pre>

<p>and the output:</p>

<p>a = <strong>-0.05</strong>  <strong>b = 0.00</strong></p>

<p>divisor = <strong>41</strong></p>

<p>a+b = <strong>-0.0524010372273268</strong></p>

<p>currAC and aveACValues are double[]</p>

<p>what on earth is going on???? The addition result is correct every time, but the division value is wrong, yet it is reading a and b correctly??</p>

<p><strong>EDIT: '41' is the value of the first calculation, ie when a = currAC[0], but this should not remain???</strong></p>
