• 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: unicode text coercion to number bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unicode text coercion to number bug?


  • Subject: Re: unicode text coercion to number bug?
  • From: "Shane Stanley" <email@hidden>
  • Date: Tue, 14 Sep 2004 17:16:46 +1000

On Mon, 13 Sep 2004 23:42:43 -0700, Mark Butcher wrote:

>(1.2 as Unicode text) * 3 --> 0.4
>
>That's fine. But if I now do:
>
>(1.2 as Unicode text) / 3 --> AppleScript Error. Can't make "1.2" into
>a number.

And the moral is: don't rely on auto-coercions unless you're 100% sure
they work.

---
Shane Stanley  <email@hidden>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >unicode text coercion to number bug? (From: Mark Butcher <email@hidden>)

  • Prev by Date: Re: Meeting a matrix of conditions
  • Next by Date: Re: unicode text coercion to number bug?
  • Previous by thread: unicode text coercion to number bug?
  • Next by thread: Re: unicode text coercion to number bug?
  • Index(es):
    • Date
    • Thread