Re: Working with numbers
| From: | Reuben D Budiardja | Date: | Wed, 09 May 2001 15:20:50 +0000 |
| Subject: | Re: Working with numbers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52119@lists.php.net to get a copy of this message | ||
Use number_format() function.
See http://www.php.net/manual/en/function.number-format.php for detail.
Reuben D. B
At 11:22 AM 5/9/01 -0700, Gerry wrote:
Could you suggest a function for displaying decimal zeros. For example I have this: $num = "2.00"; $num2 = "3.00"; $result = $num + $num2; echo "$result"; I get "5" but not "5.00" Anyone outhere? Thanks in advance! Gerry Figueroa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net