Re: Re: Bad PHP error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>
To: "Octavian Rasnita" <orasnita@xxxxxx>
Cc: <php-general@xxxxxxxxxxxxx>
Sent: Sunday, November 28, 2004 12:39 AM
Subject: Re:  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:
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux