Re: Rounding
Re: Rounding
- Subject: Re: Rounding
- From: Jon Pugh <email@hidden>
- Date: Tue, 19 Mar 2002 19:48:13 -0800
At 8:47 PM -0500 3/19/02, Rob Jorgensen wrote:
>
I need to extract the minutes from the time string of current date and then round them up to the next 5 minute increment.
on roundMe(x)
set n to x div 5 + 1
return n * 5
end roundMe
{roundMe(1), roundMe(6), roundMe(11), roundMe(16), roundMe(19), roundMe(23)}
Yeah, the "natural language" really gets in my way. ;)
Jon
_______________________________________________
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.
References: | |
| >Rounding (From: Rob Jorgensen <email@hidden>) |