• 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: negative number as text or string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >negative number as text or string (From: "Aaron Solomon (ben Saul Joseph) Adelman" <email@hidden>)

  • Prev by Date: re:Goodman Apple script book
  • Next by Date: Target Application
  • Previous by thread: negative number as text or string
  • Next by thread: Re: negative number as text or string
  • Index(es):
    • Date
    • Thread