Re: String to real conversion question
Re: String to real conversion question
- Subject: Re: String to real conversion question
- From: "Mark J. Reed" <email@hidden>
- Date: Sun, 2 May 2010 11:30:27 -0400
I can't reproduce this behavior. I get z=1.0 every time.
On Sun, May 2, 2010 at 11:19 AM, Bert Groeneveld
<email@hidden> wrote:
-- value x and y are always strings (please assume they are always coercable to real).
set x to "0.25" -- string
--set x to x as number -- z still outputs 100
--set x to x as real -- z still outputs 100
set y to "4" -- string
set z to x * y -- how can I output z = 1 here, instead of z = 100?
—
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
--
Mark J. Reed <
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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden