Inaccurate Results From Floating Point Arithmetic (JavaScript)
This post was originally supposed to be a quick note about rounding in JavaScript. Further research into the scenario I describe below lead me deep into the land of floating point arithmetic and loss of precision. While running testing for a financial application , I realized some automatically calculated balance totals…