Re: Re: Looking for something like floor() only to roun d to a nearest div
| From: | cybot | Date: | Tue, 28 Jan 2003 21:57:21 +0000 |
| Subject: | Re: Re: Looking for something like floor() only to roun d to a nearest div | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18155@lists.php.net to get a copy of this message | ||
Bryan Pal wrote:
--- "Asendorf, John" <JAsendorf@lcounty.com> wrote:$floor_val = 6*(int)(15/6);$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) es, sorry was my mistake, correct is:
Cheers! Bryan-- Sebastian Mendel info@sebastianmendel.de www.sebastianmendel.de www.tekkno4u.de www.nofetish.com__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com-----Original Message----- From: cybot [mailto:php.net@tekkno4u.de] just use $floor_val = 6 * ((int) 15/6)