FLOOR(3M) COMMAND REFERENCE FLOOR(3M) NAME floor, fabs, ceil, fmod, rint - absolute value, floor, ceiling, mod functions SYNOPSIS #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; double rint (x) double x; DESCRIPTION Floor returns the largest integer not greater than x. Ceil returns the smallest integer not less than x. Rint returns the integer nearest x. Fmod returns x if y is zero; otherwise it 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|. EXAMPLES floor (5.4) = 5.0 floor (-5.4) = -6.0 ceil (5.4) = 6.0 ceil (-5.4) = -5.0 fmod (-10.6, 0.0) = -10.6 fmod (10.6, 4.0) = 2.6 fmod (-10.6, 4.0) = -2.6 FILES /usr/lib/libm.a Mathematical library functions. /lib/libc.a Standard C library functions (fabs part of this library). Printed 5/12/88 1
FLOOR(3M) COMMAND REFERENCE FLOOR(3M) SEE ALSO abs(3c). Printed 5/12/88 2
%%index%% na:288,135; sy:423,1565; de:1988,743; ex:2731,316; fi:3047,306; se:3713,153; %%index%%000000000110