FLOOR(3M) COMMAND REFERENCE FLOOR(3M)
NAME
fabs, floor, ceil, fmod - 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;
DESCRIPTION
Floor returns the largest integer not greater than x.
Ceil returns the smallest integer not less than 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).
SEE ALSO
abs(3c).
Printed 10/17/86 1
%%index%%
na:72,113;
sy:185,862;
de:1047,531;
ex:1578,285;
fi:1863,280;
se:2143,77;
%%index%%000000000107