mdb decimal types
| From: | Alan Knowles | Date: | Thu, 27 Mar 2003 07:48:42 +0000 |
| Subject: | mdb decimal types | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-14656@lists.php.net to get a copy of this message | ||
Just having a look through the decimal handling in mdb
for mysql and postgres it appears to be mapping decimals to integers then doing a bit of maths in PHP to 'get' it out again.
mysql has decimal (5,2)
postgres has numeric(5,2)
It would be far better to use these for cash calculations (unless mdb wants to start using bcmath to do the calcs.?)
Thoughts?
Regards
Alan
--
Can you help out?
Need Consulting Services or Know of a Job?
http://www.akbkhome.com