Working with numbers
| From: | Gerry | Date: | Wed, 09 May 2001 18:22:35 +0000 |
| Subject: | Working with numbers | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-52117@lists.php.net to get a copy of this message | ||
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