Re: AppleScript bug with 15+ digits.
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.