Re: Integer question

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

 



On 3/23/07, Richard Lynch <ceo@xxxxxxxxx> wrote:
On Thu, March 22, 2007 2:33 pm, Tijnema ! wrote:
>> > 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 :)

Even GMP (or BC) isn't unlimited...

It's just limited to the number of bytes you have in RAM/swap. :-)

Yeah, well if you have a few TB of space, which you set up as swap,
the number would come really close to unlimited :) But of course it is
limited :P
So if you have 10 TB of swap(I believe current kernels can't handle
that, but that's another story) you could get a number as big as
2^87960930222081
Tell me any example where you would use a number larger than that :)

Tijnema


--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?



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