Re: [PHP] [OFF: logical question] rounding in steps of 15

2005-08-18 Thread Norbert Wenzel
Richard Lynch wrote: You're on your own converting 1:38 or 357 into minutes, but: $minutes = 357; $minutes = 15 * round($minutes / 15); echo "minutes: $minutes\n"; Thank you both. The conversion from 1:38 to 98 is no problem, but I knew there was a more beautiful way round to 15 minutes. Th

Re: [PHP] [OFF: logical question] rounding in steps of 15

2005-08-18 Thread Richard Lynch
On Thu, August 18, 2005 12:56 am, Norbert Wenzel wrote: > Excuse me, I know my question is not PHP specific, but I hope there > are > some logical and mathematical talents in here, since I've always been > fighting with maths. ;-) > > I have to provide a textfield, where workers enter their time th

Re: [PHP] [OFF: logical question] rounding in steps of 15

2005-08-18 Thread Robin Vickery
On 8/18/05, Norbert Wenzel <[EMAIL PROTECTED]> wrote: > Excuse me, I know my question is not PHP specific, but I hope there are > some logical and mathematical talents in here, since I've always been > fighting with maths. ;-) > > I have to provide a textfield, where workers enter their time they