1floor(3M)               Mathematical Library Functions               floor(3M)
2
3
4

NAME

6       floor, floorf, floorl - floor function
7

SYNOPSIS

9       c99 [ flag... ] file... -lm [ library... ]
10       #include <math.h>
11
12       double floor(double x);
13
14
15       float floorf(float x);
16
17
18       long double floorl(long double x);
19
20

DESCRIPTION

22       These functions compute the largest integral value not greater than x.
23

RETURN VALUES

25       Upon successful completion, these functions return the largest integral
26       value not greater than x, expressed as a double, float, or long double,
27       as appropriate for the return type of the function.
28
29
30       If x is NaN, a NaN is returned.
31
32
33       If x is ±Inf or ±0, x is returned.
34

ATTRIBUTES

36       See attributes(5) for descriptions of the following attributes:
37
38
39
40
41       ┌─────────────────────────────┬─────────────────────────────┐
42       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
43       ├─────────────────────────────┼─────────────────────────────┤
44       │Interface Stability          │Standard                     │
45       ├─────────────────────────────┼─────────────────────────────┤
46       │MT-Level                     │MT-Safe                      │
47       └─────────────────────────────┴─────────────────────────────┘
48

SEE ALSO

50       ceil(3M),      feclearexcept(3M),      fetestexcept(3M),     isnan(3M),
51       math.h(3HEAD), attributes(5), standards(5)
52
53
54
55SunOS 5.11                        12 Jul 2006                        floor(3M)
Impressum