May 2009
1 post
1 tag
Dealing with currency in Javascript
I probably don’t need to tell you that it’s a very bad idea to do any floating point arithmetic in Javascript. There’s no arbitrary precision decimal library (like BigDecimal). If you have attempted it, you know that this ends very, very badly. So what’s a dev to do when you need to do some simple arithmetic (adding, subtracting etc) on the client-side? The answer is to...
May 7th
1 note