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

What are interfaces in php?

927


What is mean by an associative array?

1025


How to redirect https to http url through .htaccess?

925


Explain what is the use of "echo" in php?

1000


Do loops php?

957


Does wordpress run on php 7?

929


Is salary fixed or variable cost?

963


What does session start do in php?

935


What is php sequence?

915


Do you know what does $globals means?

1003


Tell me how can we display information of a variable and readable by human with php?

998


What is "print" in php?

912


Is nan in php?

1005


How is it possible to cast types in php?

937


What is varchar mysql?

1120