• 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: How to coerce a real to an integer in X?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to coerce a real to an integer in X?


  • Subject: Re: How to coerce a real to an integer in X?
  • From: has <email@hidden>
  • Date: Fri, 1 Feb 2002 21:10:44 +0000

ThePPCGod wrote:

> -- if you want it to round up and down; omit this line to just round
>down.
> set x to x + 0.5
> set x to (round (x) rounding down)

How about 'x div 1' to round down? Should be quicker than using 'round' (an
osax call).

HTH

has


  • Prev by Date: Re: OO Theory misconceptions (was Re: can I make a list of
  • Next by Date: Re: [Meta,OT] OOP and Forks
  • Previous by thread: Re: How to coerce a real to an integer in X?
  • Next by thread: Re: How to coerce a real to an integer in X?
  • Index(es):
    • Date
    • Thread