Re: Integer question
| From: | Tijnema ! | Date: | Fri, 23 Mar 2007 14:59:26 +0000 |
| Subject: | Re: Integer question | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-251174@lists.php.net to get a copy of this message | ||
On 3/23/07, Richard Lynch <ceo@l-i-e.com> wrote:
On Thu, March 22, 2007 2:33 pm, Tijnema ! wrote: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 :) Tijnema2). How do you handle numbers that large, while maintaininga 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. :-)precision. keep them as strings - and/or use a 64bit machine?
-- 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?