Re: Dividing too integers...

From: Date: Fri, 19 Oct 2001 17:51:48 +0000
Subject: Re: Dividing too integers...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71608@lists.php.net to get a copy of this message
try this.. $temp = ($foo%$bar); $this=$temp/$bar; ----- Original Message ----- From: "Seb Frost" <seb@raceshoot.com> To: <php-general@lists.php.net> Sent: Friday, October 19, 2001 6:20 AM Subject: [PHP] Dividing too integers... > 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 (#71608) next »