Re: real comparison problems [Re: ASTest redux]
Re: real comparison problems [Re: ASTest redux]
- Subject: Re: real comparison problems [Re: ASTest redux]
- From: Andy Wylie <email@hidden>
- Date: Sun, 29 Sep 2002 09:56:53 +1200
on Sat, 28 Sep 2002 11:41:59 +0100 has wrote:
>
One solution I suppose is to coerce the reals to strings and comparing
>
those, except that might then get hung up on a visible rounding error. And
>
none of which really helps if the values being tested aren't reals
>
themselves, but compound structures such as lists or, worse, records
>
containing reals.
I don't know what you mean by visible rounding error, couldn't you just bang
it through an error trap? Probably more economical that ascertaining its
class...
try
set x to x as text as number
FWIW I agree the way AS deals with it can be perplexing
_____________________________ Andy
_______________________________________________
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.