title: Angular JS inaccurate substraction of two decimal numbers
body: <p>In my angular JS application I have three amounts in one object. In Chrome browser debugger i have following:</p>
  
  <p>payment.amountForClosing = payment.amountRemaining - payment.amountReserved; </p>
  
  <p>payment.amountRemaining has a value of 3026.2 </p>
  
  <p>payment.amountReserved has a value of 2478.4</p>
  
  <p>after substraction payment.amountForClosing has a value of 547.7999999999997, and 547.8 is displayed.
  When user tries to make another payment closing, my validation logic returns an error indicating that there is not enough money to make payment closing because of state presented above.</p>
  
  <p>Those amount values come from C# WebApi 2.0 backend, as System.Decimal types.</p>