Re: Round with ONE-decimal... always...
| From: | Mark Rees | Date: | Mon, 12 Sep 2005 09:12:26 +0000 |
| Subject: | Re: Round with ONE-decimal... always... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-222163@lists.php.net to get a copy of this message | ||
>
> I want to adjust the round() -function a little...
>
> If I put round(6,0) there will be an output of 6
> If I put round(6,32) there will be an output of 6,3
>
> I want it to have 6,0 instead of just 6... I guess there is an easy
solution
> to this? Suggestions?
Have a look at this.
http://uk2.php.net/manual/en/function.number-format.php