• 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: real comparison problems [Re: ASTest redux]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: real comparison problems [Re: ASTest redux]
  • Next by Date: Odd Behaviour
  • Previous by thread: Re: real comparison problems [Re: ASTest redux]
  • Next by thread: Re: real comparison problems [Re: ASTest redux]
  • Index(es):
    • Date
    • Thread