.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" May be distributed under the GNU General Public License .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified Sat Jul 24 19:37:00 1993 by Rik Faith (faith@cs.unc.edu) .TH FLOOR 3 "June 6, 1993" "" "Linux Programmer's Manual" .SH NAME floor \- largest integral value not greater than x .SH SYNOPSIS .nf .B #include .sp .BI "double floor(double " x ); .fi .SH DESCRIPTION The \fBfloor()\fP function rounds \fIx\fP downwards to the nearest integer, returning that value as a double. .SH "CONFORMING TO" SVID 3, POSIX, BSD 4.3, ISO 9899 .SH SEE ALSO .BR abs "(3), " fabs "(3), " ceil "(3), " rint (3)