Re: converting whole or tenth prices to double decimal

From: Date: Thu, 23 Dec 2004 12:30:34 +0000
Subject: Re: converting whole or tenth prices to double decimal
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-205068@lists.php.net to get a copy of this message
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://www.launchcode.co.uk - PHP Development Services "I am not young enough to know everything." - Oscar Wilde

« previous php.general (#205068) next »