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: [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