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 to execute an sql query? How to fetch its result?

1190


What is the capacity of mysql database?

1135


Name and explain five of the PHP error constants?

1003


Which is true about the singleton design pattern?

989


Is php outdated 2019?

997


Php being an open source is there any support available to it?

1162


Do you know how to get the ip address of the client?

1257


Write a statement to show the joining of multiple comparisons in php?

1068


How can you retrieve a cookie value?

1146


How is it possible to parse a configuration file?

1016


What does odbc do in context with php?

1084


What are the steps for the payment gateway processing?

1062


What are the benefits of using queries?

1241


What is the difference between file_get_contents() and file_put_contents() in php?

1233


Do loops php?

1036