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
How do you connet mysql database with php?
Is nan in javascript?
How to get the ip address of the client?
Distinguish between urlencode and urldecode?
Which is the best web server?
If the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
What is php limit?
Write down the benefits of php7?
What is static in php?
When use javascript vs php?
What is a controller in php?
What are the method available in form submitting?
What is meant by an associative array?
Can we set session value in javascript?
Can you extend a final defined class?