Re: [PHP] converting whole or tenth prices to double decimal

2004-12-23 Thread Brian A. Anderson
I found it $strprice1 = number_format($strprice1, 2, '.', ''); - Original Message - From: "Brian A. Anderson" <[EMAIL PROTECTED]> To: Sent: Thursday, December 23, 2004 6:25 AM Subject: [PHP] converting whole or tenth prices to double decimal

RE: [PHP] converting whole or tenth prices to double decimal

2004-12-23 Thread Robinson, Matthew
sprintf should also meet your needs although not as well as money_format() -Original Message- From: Richard Davey [mailto:[EMAIL PROTECTED] Sent: 23 December 2004 12:31 To: php-general@lists.php.net Subject: Re: [PHP] converting whole or tenth prices to double decimal Hello Brian

Re: [PHP] converting whole or tenth prices to double decimal

2004-12-23 Thread Richard Davey
Hello Brian, Thursday, December 23, 2004, 12:25:23 PM, you wrote: BAA> Anybody know the easiest way to convert a number like 2.1 to $2.10 or 2 to BAA> $2.00? Use the money_format() function. (Yes, PHP really does have a solution for nearly everything!) Best regards, Richard Davey -- http://

[PHP] converting whole or tenth prices to double decimal

2004-12-23 Thread Brian A. Anderson
Anybody know the easiest way to convert a number like 2.1 to $2.10 or 2 to $2.00? Silly question? -Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php