FLOOR(3M) DOMAIN/IX Reference Manual (SYS5) FLOOR(3M)
NAME
floor, ceil, fmod, fabs - floor, ceiling, remainder, abso-
lute value functions
USAGE
#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
Floor returns (as a double-precision number) the largest
integer that is not greater than x.
Ceil returns the smallest integer that is not less than x.
Fmod returns the floating-point remainder of the division of
x by y. The remainder is zero if y is zero or if x/y would
overflow. Otherwise, fmod returns the number f with the
same sign as x, such that x = iy + f for some integer i, and
|f| < |y|.
Fabs returns the absolute value of x, i.e., |x|.
RELATED INFORMATION
abs(3C).
Printed 5/10/85 FLOOR-1