Price with commas

2008-01-29 Thread lgarcia
Why my prices are showing up with commas Sometimes i got from the DB prices with 25,43924234 instead of 25.43924234 ... my math operations are going wrong because of that --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Price with commas

2008-01-29 Thread red
Storing and calculating prices with float type isn't perfect, particularly dividing prices or just making many math operations on them. Make all operations for example in cents for USD or EUR and if you want display then divide it by 100. On 29 Sty, 13:18, lgarcia [EMAIL PROTECTED] wrote: Why

Re: Price with commas

2008-01-29 Thread Marcin Domanski
Hi On Jan 29, 2008 1:18 PM, lgarcia [EMAIL PROTECTED] wrote: Why my prices are showing up with commas you have checked all regional before posting ? Sometimes i got from the DB prices with 25,43924234 instead of 25.43924234 ... my math operations are going wrong because of that