On 9/29/05, O Plameras <[EMAIL PROTECTED]> wrote:
> Bruce Badger wrote:
> >integerArray :=  #(1 -2 3 -4 5 -6 -7 8 -9 32727000 9876543210).
> On my Computer which is a 32-bit,  my C compiler is able to handle Integer
> size 4 bytes = 32 bits. So 2 exponent 32 less 1 is 2147483647. This is
> the max
> that my computer can handle. Can't handle your number  9876543210.
>
> With C on 64-bit your number will not be a problem as an integer. C integer
> is size 8 bytes = 64 bits. So 2 exponent 64 less 1 can be handled.
>
> Is your computer 64-bit or does smalltalk handles wider size integers ?

Smalltalk can handle integers of an arbitrary size, limited only by
the physical resources of the machine (e.g. RAM).

e.g.  The following are Smalltalk expressions with results on the
following line:

2 ** 64
18446744073709551616

2 ** 128
340282366920938463463374607431768211456

2 ** 256
115792089237316195423570985008687907853269984665640564039457584007913129639936

It sounds like Python can do this too.  As can Ruby (I just checked).

All the best,
     Bruce
--
Make the most of your skills - with OpenSkills
http://www.openskills.org/
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to