Re: Need to add a 0 to a float number

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Solved my own problem

Note to self, RTFM:

number_format is w hat I needed.

Thanks,
Brent

----- Original Message ----- 
From: "Brent Clements" <bclem@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
To: <php-general@xxxxxxxxxxxxx>
Sent: Sunday, October 31, 2004 8:01 PM
Subject:  Need to add a 0 to a float number


Hi,
 How would I add a 0 to variables that have the following?

I want 

$var = 6.5

to be converted to 

$var = 6.50

Thanks,
Brent

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux