Re: negative number as text or string
Re: negative number as text or string
- Subject: Re: negative number as text or string
- From: Bill Briggs <email@hidden>
- Date: Wed, 31 Jan 2001 13:13:43 -0300
At 11:42 AM -0500 31/01/01, Aaron Solomon (ben Saul Joseph) Adelman wrote:
I'm still working on statistical programming for fun using AppleScript,
and a major problem I'm having is that (x as text) or (x as string)
where x is a negative number returns something with a * (not equal sign)
instead of a minus sign. Does anyone out there have any idea why this
is happening? Thanks in advance for any help anyone can provide.
No. Can you provide some of the code. The coercion works fine here.
set x to -2
set c to class of x
{c, x as text}
--> {integer, "-2"}
set x to -2.678
set c to class of x
{c, x as text}
--> {real, "-2.678"}
set x to -2.678
set c to class of x
{c, x as string}
--> {real, "-2.678"}
- web