Jeez... that was too simple... I like my convoluted 15 line solution better!
(ok... just kidding!)

Much better than mine and much more efficient too.  Thanks,  John

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit


> -----Original Message-----
> From: Bryan Pal [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 28, 2003 3:56 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Re: Looking for something like floor() only to
> roun d to a nearest div
> 
> 
> 
> --- "Asendorf, John" <[EMAIL PROTECTED]> wrote:
> > $floor_val = 6 * ((int) 15/6) // yielded 15 for
> > me... not what I was going
> > for.
> 
> This returned 15 for me, too.
> 
> But this does what you want:
> 
> $floor_val = 6 * floor(15/6)
> 
> Cheers!
> Bryan
> 
> > > -----Original Message-----
> > > From: cybot [mailto:[EMAIL PROTECTED]]
> > > just use
> > >
> > > $floor_val = 6 * ((int) 15/6)
> 
> 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to