Manpage of FLOOR

Google
Web www.fiveanddime.net

FLOOR

Section: NEWLIB (3)
Updated: 2005 Feb 23
Index Return to Main Contents
 

NAME

1.14 `floor', `floorf', `ceil', `ceilf'--floor and ceiling

 

SYNOPSIS


     #include <math.h>
     double floor(double X);
     float floorf(float X);
     double ceil(double X);
     float ceilf(float X);  

DESCRIPTION

`floor' and `floorf' find the nearest integer less than or equal to X. `ceil' and `ceilf' find the nearest integer greater than or equal to X.

 

RETURNS

`floor' and `ceil' return the integer result as a double. `floorf' and `ceilf' return the integer result as a float.

 

PORTABILITY

`floor' and `ceil' are ANSI. `floorf' and `ceilf' are extensions.

 

SEE ALSO

floor is part of the libm library. The full documentation for libm is maintained as a Texinfo manual. If info and libm are properly installed at your site, the command
info libm

will give you access to the complete manual.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURNS
PORTABILITY
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:25:14 GMT, May 16, 2005



www.fiveanddime.net








Google
Web www.fiveanddime.net