• 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: Coercing Numbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coercing Numbers


  • Subject: Re: Coercing Numbers
  • From: "Mark J. Reed" <email@hidden>
  • Date: Fri, 26 Feb 2010 15:20:16 -0500

Well, "x as integer as text" works if you know it's a whole number
that fits in an integer...

On Fri, Feb 26, 2010 at 3:01 PM, Oakley Masten
<email@hidden> wrote:
> Hi all
> I can't find the answer to this and don't know where else to look.
>
>
> set x to 24.95 * 100
>
> -->  x = 2495.0
>
> set x to 124.95 * 100
>
> -->   x = 1.2495E+4
>
> if I set XasText to (x as text)
>
> I still get 1.2495E+4
>
> How do I get this to show up as  12495 ?
>
> Thanks
>
> Oakley
>
>  _______________________________________________
> 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

References: 
 >Coercing Numbers (From: Oakley Masten <email@hidden>)

  • Prev by Date: Coercing Numbers
  • Next by Date: Re: Coercing Numbers
  • Previous by thread: Coercing Numbers
  • Next by thread: Re: Coercing Numbers
  • Index(es):
    • Date
    • Thread