Unix |
Unix v7 |
|
![]() |
floor(3m) |
![]() |
fabs, floor, ceil − absolute value, floor, ceiling functions
#include <math.h>
double
floor(x)
double x;
double
ceil(x)
double x;
double
fabs(x)
double(x);
Fabs returns the absolute value |x|.
Floor returns the largest integer not greater than x.
Ceil returns the smallest integer not less than x.
abs(3)
![]() |
floor(3m) | ![]() |