Re: integer to string
| From: | John Coggeshall | Date: | Thu, 15 May 2003 21:33:30 +0000 |
| Subject: | Re: integer to string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147821@lists.php.net to get a copy of this message | ||
> how to I get it so that 1 & 2 are 1.0 & 2.0
printf("%.1f", 10);
http://www.php.net/manual/en/function.sprintf.php
John
--
-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-
John Coggeshall
john at coggeshall dot org http://www.coggeshall.org/
-~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-