• 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: AppleScript bug with 15+ digits.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript bug with 15+ digits.


  • Subject: Re: AppleScript bug with 15+ digits.
  • From: Deivy Petrescu <email@hidden>
  • Date: Tue, 1 Apr 2003 10:49:29 -0500

On Monday, March 31, 2003, at 02:53 PM, Emmanuel wrote:

At 10:50 AM -0700 31/03/03, Michelle Steiner wrote:
On Monday, March 31, 2003, at 05:40 AM, Emmanuel wrote:

The following script does not compile ("syntax error"):

-------------------------
set x to 3.141592653589793
-------------------------

If I copy and paste that, when I compile and run it, everthing after "x" vanishes from the window, and do not get any answer. If I click on the line, the text reappears. if I delete the last digit, recompile, then retype the last digit, it compiles and runs.

Not in Smile.

Just "Syntax error. some object".

Concise report, isn't it.

Emmanuel


Michelle, I do not think so, if you cut the last digit, it truncates to 3.14159265359, adding the 3 you get 3.141592653593.
Emmanuel, in terms of numerical routines, both OS X (awk at least) and AppleScript have some very weird behavior.
Something similar came up a while ago when JJ wanted to get a big number as integer not as "real", i.e.
3141592653589793 instead of 3.141592653589793E+15.
Let us try to make the best of what we have!

Regards




Deivy Petrescu
http://www.dicas.com/
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: AppleScript bug with 15+ digits.
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: Rumors of AppleScript X?
  • Next by Date: Re: (no subject)
  • Previous by thread: Re: Rumors of AppleScript X?
  • Next by thread: Re: AppleScript bug with 15+ digits.
  • Index(es):
    • Date
    • Thread