December 2010
2 posts
3 tags
Dec 16th
Javascript parseInt() may not do what you expect!
I was shocked today to find I’d introduced a bug. It manifested itself like this; This might seem ok. Except the “Number of repayments” is set by javascript as; the number of days interest less the number of days before repayment begins Looking at the dates, the “number of days before repayment begins” should be 2. But the difference is -6. Something is...
Dec 3rd