Re: [PHP] Floating values

2004-10-21 Thread Jason Wong
On Monday 18 October 2004 19:03, Nunners wrote: > I'm writing an accounting package, and have setup the MySQL database with > decimal(6,2) types for the amount of transactions etc. You should be using the bcmath functions if you aren't already doing so. -- Jason Wong -> Gremlins Associates -> w

RE: [PHP] Floating values

2004-10-18 Thread Graham Cossey
How about this? http://uk2.php.net/manual/en/function.number-format.php HTH Graham > -Original Message- > From: Nunners [mailto:[EMAIL PROTECTED] > Sent: 18 October 2004 12:03 > To: [EMAIL PROTECTED] > Subject: [PHP] Floating values > > > Simple question. &g

Re: [PHP] Floating values

2004-10-18 Thread bbonkosk
http://us2.php.net/manual/en/function.number-format.php - Original Message - From: Nunners <[EMAIL PROTECTED]> Date: Monday, October 18, 2004 7:03 am Subject: [PHP] Floating values > Simple question. > > > > I'm writing an accounting package, and have setup

[PHP] Floating values

2004-10-18 Thread Nunners
Simple question. I'm writing an accounting package, and have setup the MySQL database with decimal(6,2) types for the amount of transactions etc. Is there a way I can reproduce this in the php output? i.e. the number sorted is 8.70 and when you output the value it comes out as 8.7