Re: Round a float to the next highest value despite the value after the point
| From: | Renaldo De Silva | Date: | Fri, 08 Feb 2002 19:47:01 +0000 |
| Subject: | Re: Round a float to the next highest value despite the value after the point | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-16723@lists.php.net to get a copy of this message | ||
I just found it, what I was looking for was ceil(), that function round a
float to the next highest values no matter what is after the point
Example: $test=5.3
ceil($test) // gives 6
If you just used round you would get 5 instead of 6
Renaldo De Silva wrote:
> how can I round a float to the next highest value reguardless of the value
> after the point, does anyone have any suggestion, any help would be
> apreciated.