Re: Re: Bad PHP error
| From: | Octavian Rasnita | Date: | Sat, 27 Nov 2004 23:25:10 +0000 |
| Subject: | Re: Re: Bad PHP error | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202979@lists.php.net to get a copy of this message | ||
Thank you. It seems that finally I will need to divide the numbers with
1000000, make the calculations that way, and specify that the numbers are in
millions, because I can't find any solution with PHP.
bcmath functions are not good, because they need a string to work for, and
not a number, and if I want to make some calculations, the numbers will be
converted to numbers and...
Thanks.
Teddy
----- Original Message -----
From: "Marek Kilimajer" <lists@kilimajer.net>
To: "Octavian Rasnita" <orasnita@fcc.ro>
Cc: <php-general@lists.php.net>
Sent: Sunday, November 28, 2004 12:39 AM
Subject: Re: [PHP] Re: Bad PHP error
Octavian Rasnita wrote:
> Well, that big number is not converted as a string and printed this way,
or
> I am missing something.
>
> Here is an example:
>
> <?php
> $var = 1000000000000;
> //Here I have also tried inserting $var = (string) $var;
> echo "$var";
> ?>
>
> This prints:
>