diff options
Diffstat (limited to 'static/unix-v10/man3/floor.3')
| -rw-r--r-- | static/unix-v10/man3/floor.3 | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/static/unix-v10/man3/floor.3 b/static/unix-v10/man3/floor.3 new file mode 100644 index 00000000..d62ea271 --- /dev/null +++ b/static/unix-v10/man3/floor.3 @@ -0,0 +1,57 @@ +.TH FLOOR 3M +.CT 2 math +.SH NAME +fabs, fmod, floor, ceil \(mi absolute value, remainder, floor, ceiling functions +.SH SYNOPSIS +.nf +.B #include <math.h> +.PP +.B double floor(x) +.B double x; +.PP +.B double ceil(x) +.B double x; +.PP +.B double fabs(x) +.B double x; +.PP +.B double fmod(x,y) +.B double x, y; +.nf +.SH DESCRIPTION +.I Fabs +returns the absolute value +.RI | \|x\| |. +.PP +.I Floor +returns the +largest integer +not greater than +.IR x . +.PP +.I Ceil +returns the +smallest integer +not less than +.IR x . +.PP +.I Fmod +returns +.I x +if +.I y +is zero, otherwise the number +.I f +with the same sign as +.IR x , +such that +.I "x = iy + f" +for some integer +.IR i , +and +.RI | \|f\| | +< +.RI | \|x\| |. +.SH SEE ALSO +.IR arith (3), +.IR frexp (3) |
