Currently At: Programming Reference > C Reference > Standard C Math > floor()

floor()


Syntax:
#include <math.h>
double floor( double arg );


Description:
The function floor() returns the largest integer not greater than arg.

Example:
y = 6.04;
x = floor( y );

RESULT: x set to 6.0


Related Topics:
ceil()


Web Standards & Support:

Link to and support eLook.org Powered by LoadedWeb Web Hosting
Valid XHTML 1.0! Valid CSS! eLook.org FireFox Extensions