Re: how to convert 0.5 to 0.50
| From: | Barry | Date: | Thu, 13 Apr 2006 14:02:10 +0000 |
| Subject: | Re: how to convert 0.5 to 0.50 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-233888@lists.php.net to get a copy of this message | ||
Merlin wrote:
Hi there, I am searching for a command on how to format 0.5 to 0.50 thanx for any help, merlin sprintf("%.02f",$string);Or number_format() -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)