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

From: Date: Wed, 29 Jan 2003 09:22:29 +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-18170@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. That might be because the expression is interpreted as 6 * [((int)15) /6] Try : 6 * (int)(15/6)

« previous php.windows (#18170) next »