Re: Possible bug.
Re: Possible bug.
- Subject: Re: Possible bug.
- From: deivy petrescu <email@hidden>
- Date: Sun, 2 May 2004 23:43:27 -0400
On May 2, 2004, at 9:27 PM, Deivy Petrescu wrote:
At 5:55 PM -0700 5/2/04, Paul Berkowitz wrote:
Not really, just an inconsistent implicit coercion. 'run script'
takes a
string as an argument and you're giving it numerical fractions. It
can deal
with the rational fraction 1/5 = 0.2 OK, coercing it to "0.2". But it
has
trouble with the irrational 1/9, probably because the usual answer we
get
(0.111111111111) is a rounding that needs an evaluation first by
explicit
coercion':
I believe you are 100% right here. Further tests indicate this.
I was working with trigonometric functions and used pi a lot. However,
I forgot if I was sending or receiving.
Then, I did not pay much attention to what I was getting.
Thanks Paul!
Paul, sorry, but I have to take it back!
You are right. It is a problem with periodic fractions.
But looking at it again, it seems like bug.
And using your own words "inconsistent implicit coercion."
Inconsistent behavior is consisten with a bug!
If it handles complicated operations it should also handle divisions.
Long or short results. Or, not handle any at all.
Regards
Saudagues
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.