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 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 Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to