javascript Programming Glossary: totalamt
Strange javascript addition problem http://stackoverflow.com/questions/1416633/strange-javascript-addition-problem javascript addition problem I have this code var totalAmt 0 for i in orders order orders i if order.status 'Cancelled'.. for i in orders order orders i if order.status 'Cancelled' totalAmt totalAmt order.amount But if i have 3 orders with amounts 3.. orders order orders i if order.status 'Cancelled' totalAmt totalAmt order.amount But if i have 3 orders with amounts 3 1 and 5 then..
|