Re: round
| From: | AJDIN BRANDIC | Date: | Wed, 31 Jan 2001 10:38:00 +0000 |
| Subject: | Re: round | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-37450@lists.php.net to get a copy of this message | ||
Oh,
number_format (float number, int decimals, string dec_point, string
thousands_sep)
Sorry
Ajdin
On Wed, 31 Jan 2001, AJDIN BRANDIC wrote:
> Hi
>
> Lets say $foo=20.12345
>
> In php4 you can use : $foo=$round($foo,2); to get $foo=20.12
>
> What can I use in php3 to get the same result. $foo=$round($foo); gives
> me $foo=20 Not what I realy want???
>
> Thanks
>
> Ajdin
>
>
> --
> 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
>
>