Problem with round
| From: | Diego Pérez | Date: | Tue, 04 Dec 2001 00:05:55 +0000 |
| Subject: | Problem with round | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-76432@lists.php.net to get a copy of this message | ||
Hi to all:
I can't understand, but i have a simple problem with round.
I use the function round($value,2) to round a number with 2 decimals. But when i put the result
in the screen, if $value don't have more or equal than 2 decimal numbers, the result only have
one o none decimals.
I do some examples, but not work correctly.
Can someone help me.
Thanks.
Best Regards, Diego