[PHP] formating numbers to two decimal points - money - best ways

2001-07-18 Thread Tim Olsen
Anyone have functions for formatting numbers being multiplied by variables and whatnot to two decimal points - rounded up? As for displaying total cost, etc? _ Get your FREE download of MSN Explorer at http://explorer.msn.com --

Re: [PHP] formating numbers to two decimal points - money - best ways

2001-07-18 Thread David Robley
On Wed, 18 Jul 2001 17:21, Tim Olsen wrote: Anyone have functions for formatting numbers being multiplied by variables and whatnot to two decimal points - rounded up? As for displaying total cost, etc? PHP has :-) have a look at the mathematical functions.

RE: [PHP] formating numbers to two decimal points - money - best ways

2001-07-18 Thread Adrian Ciutureanu
? $c = 12.3456; echo number_format($c, 2); ? http://php.net/number_format -Original Message- From: Tim Olsen [mailto:[EMAIL PROTECTED]] Sent: 18 iulie 2001 10:52 To: [EMAIL PROTECTED] Subject: [PHP] formating numbers to two decimal points - money - best ways