• 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: "Stockly, Ed" <email@hidden>
  • Date: Fri, 26 Feb 2010 12:34:09 -0800
  • Thread-topic: Coercing Numbers

Title: Re: Coercing Numbers
>>if I set XasText to (x as text)

>>I still get 1.2495E+4

>>How do I get this to show up as  12495 ?

This works if you know the result will be an integer

set x to 124.95 * 100 as integer

This would work too:

set x to 124.95 div 0.01



HTH,

ES



 _______________________________________________
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: Re: Coercing Numbers
  • Next by Date: Re: Coercing Numbers
  • Previous by thread: Re: Coercing Numbers
  • Next by thread: Re: Coercing Numbers
  • Index(es):
    • Date
    • Thread