title: Excel formula calculation in C#
body: <p>I'm having a bit of trouble with a calculation in Excel that needs to be written in C#.</p>
  
  <p>The calculation in Excel is this:</p>
  
  <pre><code>=(26/1000*1,500+(0,0000039096*(26*26)+0,000082819*26+0,005066))*149468556,2
  *(1+0,10%)
  </code></pre>
  
  <p>This gives the result of: <code>7310663,398</code></p>
  
  <p>In C# I have the exact same calculation (except for more decimals in the 14949.. number:</p>
  
  <pre><code>(26.0 / 1000.0 * 1.500 + (0.0000039096 * (26.0 * 26.0) + 0.000082819 * 26.0 + 0.005066)) * 149468556.2 * (1 + 0.1);
  </code></pre>
  
  <p>Which gives this result: <code>7632589.7787303319</code></p>
  
  <p>Since the last number in the formula is percent I've also tried this:</p>
  
  <pre><code>(26.0 / 1000.0 * 1.500 + (0.0000039096 * (26.0 * 26.0) + 0.000082819 * 26.0 + 0.005066)) * 149468556.2 * (1 + (0.1/100));
  </code></pre>
  
  <p>Which gives this result: <code>6945656.6986446008</code></p>
  
  <p>Of course, I need to match the Excel result in C#, but I'm totally stuck on how to achieve this. Guess I should've listened closer in the math lessons ;-)</p>
  
  <p>Any help/input on this is greatly appreciated!</p>
  
  <p>Thanks in advance.</p>
  
  <p>All the best,</p>
  
  <p>Bo</p>