• 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
newbie question: real with fraction to int
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

newbie question: real with fraction to int


  • Subject: newbie question: real with fraction to int
  • From: leo <email@hidden>
  • Date: Sat, 25 Oct 2003 01:39:04 +1000

hi there

i want to assign a real to an integer but casting or ("coerceing" in AS) works only for non fractional reals. so, the line

set i to 9.5 as integer

gives an error. how can i truncate a value to an int regardless of the fraction ? i looked thoroughly in the ASLanguageGuide but couldn't find anything.

thanks and cheers, leo
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: newbie question: real with fraction to int
      • From: Paul Berkowitz <email@hidden>
    • Re: newbie question: real with fraction to int
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Need to script tracking in multiple Quark files-correction
  • Next by Date: Copy items
  • Previous by thread: Fwd: Repost: Changing desktop pictures
  • Next by thread: Re: newbie question: real with fraction to int
  • Index(es):
    • Date
    • Thread