The function rounds the argument to the largest integer less than or equal to the argument.

Call:

double dresult = floor(double dvalue);