Re: Dividing too integers...

From: Date: Fri, 19 Oct 2001 10:29:49 +0000
Subject: Re: Dividing too integers...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71572@lists.php.net to get a copy of this message
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 >

« previous php.general (#71572) next »