• 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: "Mark J. Reed" <email@hidden>
  • Date: Mon, 10 May 2010 23:39:05 -0400

On Mon, May 10, 2010 at 11:26 PM, Mark J. Reed <email@hidden> wrote:
> On 10.4.11, you get the maximum integer value for any overflow. On
> 10.6, you seem to get the lower 31 bits of the overflowing value.

Well, lower 32.  It's just that the 32nd bit in Yvan's example
happened to be zero.  Feed it a value with a 1 there and you get a
negative result:

$ osascript -e '16441216376 as integer'
-7.38652808E+8


--
Mark J. Reed <email@hidden>
 _______________________________________________
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

References: 
 >Re: String to real conversion question (From: Thomas Fischer <email@hidden>)
 >Re: String to real conversion question (From: Christopher Nebel <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: Michelle Steiner <email@hidden>)
 >Re: String to real conversion question (From: "Mark J. Reed" <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>)

  • Prev by Date: Re: String to real conversion question
  • Next by Date: Selecting a folder from the sidebar in a save dialog
  • Previous by thread: Re: String to real conversion question
  • Next by thread: Re: String to real conversion question
  • Index(es):
    • Date
    • Thread