Re: Rounding a number up if the number is anything more than a whole number
| From: | Ignacio Vazquez-Abrams | Date: | Wed, 17 Jan 2001 21:26:04 +0000 |
| Subject: | Re: Rounding a number up if the number is anything more than a whole number | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35158@lists.php.net to get a copy of this message | ||
On Mon, 17 Jan 2000, Brandon Orther wrote:
> Hello,
>
> I am doing a math function where I divide one number by another. I want it
> to give me a whole number though, and if it is anything above a number I
> want it to go to the next one up.
>
> Example:
>
> 4.0001 would equal 5
>
> 3.98 would equal 4
>
> 11.023 would equal 12
>
>
> I hope you understand what I am trying to say.
>
>
> Thank you,
>
> --------------------------------------------
> Brandon Orther
> WebIntellects Design/Development Manager
> brandon@webintellects.com
> 800-994-6364
> www.webintellects.com
> --------------------------------------------
>
ceil()
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>