HP C/iX Library Reference Manual (30026-90004)
Chapter 5 155
HP C/iX Library Function Descriptions
floor
floor
Computes the largest integer value that is less than or equal to its argument.
Syntax
#include <math.h>
double floor (double
x
);
Parameters
x
A real number.
Return Values
n An integer value stored as a double.
Description
The floor function returns the largest integer not greater than
x
.
See Also
ANSI C 4.5.6.3, POSIX.1 8.1