c:math:floor From C++ Reference previous page next page floor Syntax: #include <cmath> double floor( double arg ); The function floor() returns the largest integer not greater than arg. For example, y = 6.04; x = floor( y ); would result in x being set to 6.0. Related Topics: ceil, fmod previous page start next page