Re: Possible bug.
Re: Possible bug.
- Subject: Re: Possible bug.
- From: Christopher Nebel <email@hidden>
- Date: Mon, 3 May 2004 04:25:35 -0700
On May 2, 2004, at 5:33 PM, Deivy Petrescu wrote:
set x to ((1 / (2 ^ 2 + 1)))
run script x --> 0.2
set x to ((1 / (2 ^ 3 + 1)))
run script x --> Syntax error. Some object.
It happens with a bunch of numbers.
Smells like a bug, looks like a bug and walks like a bug, is it a bug?
This is a bug, but it's not the one Paul thinks it is. There's a bug
in the AppleScript parser where it chokes on sufficiently long decimal
numbers. 0.2, not surprisingly, is fine, but a repeating decimal such
as 1/9 will trigger the bug. This is written up already.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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.