Re: Integer question

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

 



On 3/22/07, Matt Carlson <saryon@xxxxxxxxxx> wrote:
When dealing with large numbers inside of php, I know at the int limit, a variable is recast into float.



1).  How do you return the true number of the float when it reaches the upper limits of mysql's bigint (9223372036854775807).

2).  How do you handle numbers that large, while maintaining precision.
3).  Is there a php equivalent of unsigned?

Thanks all


Hmm, better have a look at the gmp functions : www.php.net/gmp
if you don't have the gmp math library installed, you might want to
look at the worses alternative bcmath, which is automatically build
into php: www.php.net/bc

Tijnema




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



--
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