FLOOR(S) XENIX System V FLOOR(S)
Name
floor, fabs, ceil, fmod - Performs absolute value, floor,
ceiling and remainder functions.
Syntax
#include <math.h>
double floor (x)
double x;
double ceil (x)
double x;
double fmod (x, y)
double x, y;
double fabs (x)
double x;
Description
fabs returns |x|.
floor returns the largest integer (as a double precision
number) not greater than x.
ceil returns the smallest integer not less than x.
fmod returns the number f such that x = iy + f, for some
integer i, and 0 _ f<y.
See Also
abs(S)
Notes
These routines must be linked by using the -lm linker
option.
Page 1 (printed 8/7/87)