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

From: Date: Tue, 28 Jan 2003 20:55:49 +0000
Subject: RE: [PHP-WIN] Re: Looking for something like floor() only to roun d to a nearest div
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-18153@lists.php.net to get a copy of this message
--- "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

« previous php.windows (#18153) next »