Re: [PHP] sprintf problem... (with simplified code )

2008-03-23 Thread Richard
sitions on display rounds up to 1.97. if you stored the rounded value ,on a per-item basis, you'd get what you're after. now, the question is whether vat is applied per item or on the invoice total. the difference becomes more obvious with say 3 items, at 10.03. on a (rounded) pe

Re: [PHP] sprintf problem... (with simplified code )

2008-03-22 Thread Richard
Here is a simplifie version of my code : I get 12.00 and 23.99 ... what should I do to get 12.00 and 24.00 ? Richard a écrit : Hello, I'm trying to write a invoice script but I have encountered a slight problem. Each product needs to be listed without tax, and at the end of the file I need