Re: Changing numbers

From: Date: Mon, 21 Jul 2003 18:49:53 +0000
Subject: Re: Changing numbers
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-156111@lists.php.net to get a copy of this message
zavaboy wrote:
*Sigh*, lets say I have: 2.65 3.3 5.2670 12.030 I would like it at least 2 decimal places.. So, 5.2670 would be 5.267 not 5.27: 2.65 3.30 5.267 12.03 "James Rodenkirch" <jamesr@ez-net.com> wrote in message news:3F1C298E.80602@ez-net.com...
try rounding it first http://www.php.net/manual/en/function.round.php Zavaboy wrote:
What about if I had 2.856 that function will make it 2.86. "Jay Blanchard" <jay.blanchard@niicommunications.com> wrote in message news:C8F323573C030A448F3E5A2B6FE2070B0101F95A@nemesis... [snip] How can I make them have at least 2 decimal places? [/snip] RTFM at http://www.php.net/number_format HTH!
*Sigh* RTFM - http://us4.php.net/sprintf

« previous php.general (#156111) next »