MACSCRPT Archives

May 2003

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Walter Ian Kaye <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 14 May 2003 12:42:00 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (31 lines)
At 03:23p -0400 05/14/2003, Franz Walter Klein didst inscribe upon an
electronic papyrus:

>Hello Emmanuel,
>
>
>thank you for your code. Of course i started playing with it and found the
>following:
>
>(2 ^ 16) as integer       --> 65536
>
>(2 ^ 28) as integer       --> 268435456
>
>(2 ^ 29) as integer       --> Can't make 5.36870912E+8 into a integer.
>
>So it is clear that integers are represented by more than 16 bits. And AS
>handles up to 2^28 as an integer but bigger numbers do not seem to be
>represented as integers internally.
>
>In this case 268 MB file size is just enough for my purposes but I am still
>curious about that MaxInt in AS.

There are actually at least three integer types in AS:

   short integer
   integer (the default)
   double integer


-Walter

ATOM RSS1 RSS2