• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: String to real conversion question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String to real conversion question


  • Subject: Re: String to real conversion question
  • From: Christopher Nebel <email@hidden>
  • Date: Mon, 10 May 2010 18:12:19 -0700

On May 10, 2010, at 10:30 AM, Doug McNutt wrote:

> At 18:50 +0200 5/10/10, Thomas Fischer wrote:
> So it seems that Michelle has a somewhat special system.
> And by the way, I get the German equivalent of "Can't make 9.998765432E+9 into type integer." with Smile.
> So, what's going on?
>
> Does it matter if the machine is 32 or 64 bit hardware?

Give that man a prize.  It's a bug in the 64-bit version of the Apple Event Manager -- 32-bit will correctly fail if the input is out of range.  Now written up as <radar:7966416> for those who want to keep track.

> Wasn't it once the case that integers were limited to less than 31 bits plus sign in AppleScript? I remember something like 30 bits to allow for a flag but perhaps that was Hypercard.

AppleScript uses that system (see "tagged pointers") as well -- the largest possible integer is 2^29 - 1.


--Chris Nebel
AppleScript Engineering

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: String to real conversion question
      • From: Michelle Steiner <email@hidden>
References: 
 >RE: String to real conversion question (From: Scott Babcock <email@hidden>)
 >Re: String to real conversion question (From: Yvan KOENIG <email@hidden>)
 >Re: String to real conversion question (From: Michelle Steiner <email@hidden>)
 >Re: String to real conversion question (From: Yvan KOENIG <email@hidden>)
 >Re: String to real conversion question (From: Michelle Steiner <email@hidden>)
 >Re: String to real conversion question (From: "Mark J. Reed" <email@hidden>)
 >Re: String to real conversion question (From: Yvan KOENIG <email@hidden>)
 >Re: String to real conversion question (From: "Mark J. Reed" <email@hidden>)
 >Re: String to real conversion question (From: Thomas Fischer <email@hidden>)
 >Re: String to real conversion question (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: funny bug
  • Next by Date: Re: String to real conversion question
  • Previous by thread: Re: String to real conversion question
  • Next by thread: Re: String to real conversion question
  • Index(es):
    • Date
    • Thread