summaryrefslogtreecommitdiff
path: root/static/v10/man3/floor.3
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-04-25 21:07:28 -0400
commit711594636704defae873be1a355a292505585afd (patch)
tree59ee13f863830d8beba6cfd02bbe813dd486c26f /static/v10/man3/floor.3
parent3258a063c1f189d7b019e40e525b46bef9b9a7b1 (diff)
docs: Added UNIX V10 Manuals
Diffstat (limited to 'static/v10/man3/floor.3')
-rw-r--r--static/v10/man3/floor.357
1 files changed, 57 insertions, 0 deletions
diff --git a/static/v10/man3/floor.3 b/static/v10/man3/floor.3
new file mode 100644
index 00000000..d62ea271
--- /dev/null
+++ b/static/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)