RE: [PHP] Dividing too integers...

From: Date: Fri, 19 Oct 2001 10:34:47 +0000
Subject: RE: [PHP] Dividing too integers...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71574@lists.php.net to get a copy of this message
Cheers Rich! I had $numrows instead of $num_rows - Doh! I said "too" instead of "two" - double Doh! - seb -----Original Message----- From: Richard Baskett [mailto:rick@baskettcase.com] Sent: 19 October 2001 11:30 To: Seb Frost; PHP General Subject: Re: [PHP] Dividing too integers... I don't see why that doesnt work... I would echo your values first to make sure the values you want in $foo and $bar are the right ones... It looks to me that your expression is correct... Rick > Sorry for the stupid question... > > I want to do > > $this=$foo/$bar; (All are integers.) > > where this is always rounded up. > > I tried the obvious > > $this = ceil($foo/$bar) but I just always get 0. > > > cheers, > > - seb > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001 > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.282 / Virus Database: 150 - Release Date: 25/09/2001

« previous php.general (#71574) next »