Math Library Functions


floor, floorf


Syntax

#include <math.h>
double floor(double x);
float  floorf(float x);

Arguments

x      original value

Return Value

The maximum integer that is less than x. 

Description

Returns the maximum integer that is less than x.