Re: Int Function
Re: Int Function
- Subject: Re: Int Function
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 18 Aug 2002 19:56:49 -0700
On 8/18/02 7:36 PM, I wrote:
>
On 8/18/02 7:23 PM, "Christopher Nebel" <email@hidden> wrote:
>
>
>> Can anyone give me an easy way to get the Int of a number, converting,
>
>> for instance, 6.1 into 6?
>
>
>
> "round" from Standard Additions will do what you want.
>
>
Any particular reason why you favor an Addition over the native AppleScript
>
>
div 1
>
>
which I sent in? If you repeating it hundreds - or thousands - of times, div 1
>
will be much faster. Is it fragile in some way I don't know of
I'm going on the basis that Chuck asked how to get the Integer portion of a
real. Naturally to round up, away from zero, as taught in school, etc. you'd
have to use round, or add some more code.
--
Paul Berkowitz
_______________________________________________
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.