Re: How to coerce a real to an integer in X?
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