Re: how to convert 0.5 to 0.50
| From: | cajbecu | Date: | Thu, 13 Apr 2006 14:06:55 +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-233890@lists.php.net to get a copy of this message | ||
<?php
print number_format('0.5',2,'.','');
// 0.50
?>
Merlin wrote:
> Hi there,
>
> I am searching for a command on how to format 0.5 to 0.50
>
> thanx for any help,
>
> merlin
>