• 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: Paul Berkowitz <email@hidden>
  • Date: Tue, 14 Sep 2004 00:51:07 -0700

Title: Re: unicode text coercion to number bug?
On 9/13/04 11:42 PM, "Mark Butcher" <email@hidden> wrote:

If I do:

(1.2 as Unicode text) * 3 --> 0.4

That's fine.

WHY is that fine?? Just supposing this were true, what numerical value would that imply for (1.2 as Unicode text)?

On top of which, just supposing there really were a coercion, it's the left side that rules. The whole _expression_ would be a Unicode, not a real  number. But there's no such coercion either direction using the multiplication operator between text and an integer.

I'm afraid I just don't believe you, Mark. Something else must be going on here.

OMM, I get --> AppleScript Error. Can't make "1.2" into a number.

But if I now do:

(1.2 as Unicode text) / 3 --> AppleScript Error. Can't make "1.2" into a number.
 
???

But that's what you should get. For both expressions.



--
Paul Berkowitz
 _______________________________________________
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: unicode text coercion to number bug?
  • Next by Date: Re: String to list conversion
  • Previous by thread: Re: unicode text coercion to number bug?
  • Next by thread: Re: unicode text coercion to number bug?
  • Index(es):
    • Date
    • Thread