Answer Posted / nilsoft
ceil()
Returns the next highest integer value by rounding up value
if necessary.
<?php
echo ceil(4.3); // 5
echo ceil(9.999); // 10
echo ceil(-3.14); // -3
?>
floor()
Returns the next lowest integer value by rounding down value
if necessary.
<?php
echo floor(4.3); // 4
echo floor(9.999); // 9
echo floor(-3.14); // -4
?>
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Does php need html?
How do you use an array in excel?
how to use http headers inside php? Write the statement through which it can be added?
What is the difference between characters 34 and x34?
How to do single and multi line comment in php?
Whether php supports microsoft sql server?
What is the definition of a session?
What exactly is PHP?
How to break a file path name into parts?
What is dao in php?
What is the value for this auto incremented field user_pri_id?
Which function you can use in php to open a file for reading or writing or for both?
What is sticky form in php?
Why should I learn php?
Explain include(), include_once, require() and require_once?