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

When sessions ends?

555


What is $row in php?

533


Do you know what is the difference between the include() and require() functions?

509


What does the unlink() function mean?

573


What is the difference between super () and this ()?

543






Explain the difference between array_merge() and array_combine()?

531


How to parse configuration file in php?

527


What is the difference between pop3 IMAP and MAPI?

637


Code to upload a file in PHP?

553


How to create database connection and query in php?

570


What is the use of $_request variable?

575


How to upload file in php?

537


How to include variables in double-quoted strings in php?

495


What is php crud api?

505


How many types of session are there?

539