Annotated edit history of
floorf(3) version 1, including all changes.
View license author blame.
| Rev |
Author |
# |
Line |
| 1 |
perry |
1 |
FLOOR |
| |
|
2 |
!!!FLOOR |
| |
|
3 |
NAME |
| |
|
4 |
SYNOPSIS |
| |
|
5 |
DESCRIPTION |
| |
|
6 |
RETURN VALUE |
| |
|
7 |
ERRORS |
| |
|
8 |
NOTES |
| |
|
9 |
CONFORMING TO |
| |
|
10 |
SEE ALSO |
| |
|
11 |
---- |
| |
|
12 |
!!NAME |
| |
|
13 |
|
| |
|
14 |
|
| |
|
15 |
floor, floorf, floorl - largest integral value not greater than argument |
| |
|
16 |
!!SYNOPSIS |
| |
|
17 |
|
| |
|
18 |
|
| |
|
19 |
__#include |
| |
|
20 |
__ ''x''__); |
| |
|
21 |
float floorf(float__ ''x''__); |
| |
|
22 |
long double floorl(long double__ ''x''__); |
| |
|
23 |
__ |
| |
|
24 |
!!DESCRIPTION |
| |
|
25 |
|
| |
|
26 |
|
| |
|
27 |
These functions round ''x'' down to the nearest |
| |
|
28 |
integer. |
| |
|
29 |
!!RETURN VALUE |
| |
|
30 |
|
| |
|
31 |
|
| |
|
32 |
The rounded integer value. If ''x'' is integral or |
| |
|
33 |
infinite, ''x'' itself is returned. |
| |
|
34 |
!!ERRORS |
| |
|
35 |
|
| |
|
36 |
|
| |
|
37 |
No errors other than EDOM and ERANGE can occur. If ''x'' |
| |
|
38 |
is NaN, then NaN is returned and ''errno'' may be set to |
| |
|
39 |
EDOM. |
| |
|
40 |
!!NOTES |
| |
|
41 |
|
| |
|
42 |
|
| |
|
43 |
The SUSv2 and Austin draft contain text about overflow |
| |
|
44 |
(which might set ''errno'' to ERANGE, or raise an |
| |
|
45 |
exception). In practice, the result cannot overflow on any |
| |
|
46 |
current machine, so this error-handling stuff is just |
| |
|
47 |
nonsense. (More precisely, overflow can happen only when the |
| |
|
48 |
maximum value of the exponent is smaller than the number of |
| |
|
49 |
mantissa bits. For the IEEE-754 standard 32-bit and 64-bit |
| |
|
50 |
floating point numbers the maximum value of the exponent is |
| |
|
51 |
128 (resp. 1024), and the number of mantissa bits is 24 |
| |
|
52 |
(resp. 53).) |
| |
|
53 |
!!CONFORMING TO |
| |
|
54 |
|
| |
|
55 |
|
| |
|
56 |
The __floor()__ function conforms to SVID 3, POSIX, BSD |
| |
|
57 |
4.3, ISO 9899. The other functions are from |
| |
|
58 |
C99. |
| |
|
59 |
!!SEE ALSO |
| |
|
60 |
|
| |
|
61 |
|
| |
|
62 |
ceil(3), lrint(3), nearbyint(3), |
| |
|
63 |
rint(3), round(3), |
| |
|
64 |
trunc(3) |
| |
|
65 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.