View Single Post
  #4 (permalink)  
Old 04-16-2008, 02:15 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: Mathematical functions in PHP

ceil() returns the next highest integer value by rounding up value if necessary. The return value of ceil() is still of type float as the value range of float is usually bigger than that of integer.

Example:
PHP Code:
<?php
echo ceil(4.3);    // 5
echo ceil(9.999);  // 10
?>
__________________
With,
J. Jeyaseelan

Everything Possible
Reply With Quote