RE: [PHP-WIN] Re: Looking for something like floor() only to roun d to a nearest div

From: Date: Tue, 28 Jan 2003 20:59:42 +0000
Subject: RE: [PHP-WIN] Re: Looking for something like floor() only to roun d to a nearest div
Groups: php.windows 
Request: Send a blank email to php-windows+get-18154@lists.php.net to get a copy of this message
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 - jasendorf@lcounty.com 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:bryan_pal@yahoo.com] > Sent: Tuesday, January 28, 2003 3:56 PM > To: php-windows@lists.php.net > Subject: RE: [PHP-WIN] Re: Looking for something like floor() only to > roun d to a nearest div > > > > --- "Asendorf, John" <JAsendorf@lcounty.com> 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:php.net@tekkno4u.de] > > > 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 >

« previous php.windows (#18154) next »