ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-general
php-general
[PHP] Need to add a 0 to a float number
by Brent Clements other posts by this author
Nov 1 2004 2:01AM messages near this date
Re: [PHP] mysql_fetch_assoc(): 3 is not a valid MySQL result resource | Re: [PHP] Need to add a 0 to a float number
Hi,
 How would I add a 0 to variables that have the following?

I want=20

$var =3D 6.5

to be converted to=20

$var =3D 6.50

Thanks,
Brent
Thread:
Brent Clements
Brent Clements
Klaus Reimer

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved