floor()
Rounds down to an integer.
Synopsis
float floor( float x );
Parameters
| Parameter | Description | 
|---|---|
| x | value | 
Return value
In the event of an error, the function returns 0.0.
Error
Description
Returns the largest integer that is less than or equal to x as the float value.
                
                Example
            
main()
{
  int i;
  i=floor(3.12); // results in 3
  i=floor(4.6); // results in 4
}
        Assignment
mathematical function
Availability
CTRL