• 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: Rounding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: Rounding
  • Next by Date: Re: Rounding
  • Previous by thread: Re: Rounding
  • Next by thread: Re: Rounding
  • Index(es):
    • Date
    • Thread