Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what will do ceil() and floor() in PHP?

Answer Posted / paul

ceil() give you the upper number of a fraction.
eg.

ceil(3.0)=3
ceil(3.1)=4
ceil(3.3)=4
ceil(3.5)=4
ceil(3.7)=4

floor() does ceil()'s opposite it returns the lower number
of the fraction

floor(3.0)=3
floor(3.1)=3
floor(3.3)=3
floor(3.5)=3
floor(3.7)=3

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I embed a java program in php file and what changes have to be done in php.ini file?

969


What is csrf token and how it works?

1005


Write a query to find the 2nd highest salary of an employee from the employee table?

1040


Can php run on windows server?

1036


How is it possible to return a value from a function?

1022


Difference between get and post method.

1010


What are the uses of explode() function?

1063


Is php 7 backwards compatible?

1029


What is the main difference between php 4 and php 5?

980


Why use php artisan serve?

967


What is mysqli_real_escape_string?

997


Is set in php?

974


What is the use of explode() function?

1072


What is mod_php?

1021


Is empty in excel?

994