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 would you declare a function that receives one parameter name hello?

916


What is meant by an associative array?

952


What is isset php?

914


Which is better mysql or sql?

942


Which php framework is best for beginners?

1037


What is the difference between php and javascript?

1111


What does php do?

957


What are the uses of php language?

926


Which escape sequences can be used in single quoted strings in php?

890


What is use of echo in php?

873


How to protect special characters in query string?

899


What is the content of /etc directory?

964


How can you propagate a session id?

947


What is the difference between explode () and split () functions in php?

1065


Explain the difference between session and cookies in php?

928