Rounding a number up if the number is anything more than a whole number
| From: | Brandon Orther | Date: | Mon, 17 Jan 2000 21:29:02 +0000 |
| Subject: | Rounding a number up if the number is anything more than a whole number | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-35155@lists.php.net to get a copy of this message | ||
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
--------------------------------------------