Cheers Rich!

I had $numrows instead of $num_rows - Doh!

I said "too" instead of "two" - double Doh!

- seb

-----Original Message-----
From: Richard Baskett [mailto:[EMAIL PROTECTED]]
Sent: 19 October 2001 11:30
To: Seb Frost; PHP General
Subject: Re: [PHP] Dividing too integers...


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]
>


---
Incoming 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

---
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]

Reply via email to