| 1 | .\" @(#)floor.3 6.1 (Berkeley) %G% |
| 2 | .\" |
| 3 | .TH FLOOR 3M "" |
| 4 | .AT 3 |
| 5 | .SH NAME |
| 6 | fabs, floor, ceil \- absolute value, floor, ceiling functions |
| 7 | .SH SYNOPSIS |
| 8 | .nf |
| 9 | .B #include <math.h> |
| 10 | .PP |
| 11 | .B double floor(x) |
| 12 | .B double x; |
| 13 | .PP |
| 14 | .B double ceil(x) |
| 15 | .B double x; |
| 16 | .PP |
| 17 | .B double fabs(x) |
| 18 | .B double x; |
| 19 | .nf |
| 20 | .SH DESCRIPTION |
| 21 | .I Fabs |
| 22 | returns the absolute value |
| 23 | .RI | \|x\| |. |
| 24 | .PP |
| 25 | .I Floor |
| 26 | returns the largest integer not greater than |
| 27 | .IR x . |
| 28 | .PP |
| 29 | .I Ceil |
| 30 | returns the smallest integer not less than |
| 31 | .IR x . |
| 32 | .SH SEE ALSO |
| 33 | abs(3) |