Re: unicode text coercion to number bug?
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