Re: [PHP] Re: Round with ONE-decimal... always...

2005-09-12 Thread Gustav Wiberg


- Original Message - 
From: "Mark Rees" <[EMAIL PROTECTED]>

To: 
Sent: Monday, September 12, 2005 11:12 AM
Subject: [PHP] Re: Round with ONE-decimal... always...



>

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






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.21/96 - Release Date: 2005-09-10



Thanx!

/G
http://www.varupiraten.se/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Round with ONE-decimal... always...

2005-09-12 Thread Mark Rees
>
> 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






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php