Dividing too integers...

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

« previous php.general (#71570) next »