PHP floor() Function

The floor() function is used to round the nearest integer whole value.

Demo :



Type No :  
Floor value is :0

Example :

Example 1: Type No: 0.60
Example 2: Type No: 5
Example 3: Type No: -5.1

If you need to calculate floor value following code useful to you.


<?php
 $Floor_no = -10.9;
 $result = floor($Floor_no);
 echo $result;
?>

In the above code is used to calculate for round the nearest integer whole value.In the floor() functions have used one parameters that name is float number.

Free Download Script :

If you need floor() function demo code download from following link.

Download




Content