summaryrefslogtreecommitdiff
path: root/static/unix-v10/man3/floor.3
blob: d62ea27121facd4b306caaeab887e32bb4b1360f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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)