try this..
$temp = ($foo%$bar);
$this=$temp/$bar;

----- Original Message ----- 
From: "Seb Frost" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to