On 3/22/07, Jochem Maas <[EMAIL PROTECTED]> wrote:
Matt Carlson 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).

I can't see how that is possible, once its 'floated' the precise int is gone.
although you might consider returning the given mysql bigint field as a
string 'CAST() AS STRING' (or whatever the syntax is) and then using the string 
inconjunction with
the bc or gmp extensions.

> 2).  How do you handle numbers that large, while maintaining precision.

keep them as strings - and/or use a 64bit machine?

a 64bit machine would make the number larger, not unlimited :)


> 3).  Is there a php equivalent of unsigned?

no

>
> Thanks all
>
>
>
>
>

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

Reply via email to