> Or you can bypass the whole issue by working in cents :-) Please don't do that :). Use a proper numeric type/library, and ensure you're using the correct numeric type in your database as well. Doing anything else will just lead to trouble one way or another.
Anything to do with money should be done with the utmost care and attention towards correctness. In general, the biggest reputation nightmares you can have with web apps go in this order: 1. Health 2. Money 3. Privacy Screwing any of these up is a bad move, but screwing Money up is twice as bad as privacy, and Health is twice as bad again. -- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected]
