.\" 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 21:27:30 1993 by Rik Faith (faith@cs.unc.edu) .TH CEIL 3 "June 6, 1993" "" "Linux Programmer's Manual" .SH NAME ceil \- smallest integral value not less than x .SH SYNOPSIS .nf .B #include .sp .BI "double ceil (double " x ); .fi .SH DESCRIPTION The \fBceil()\fP function rounds \fIx\fP upwards 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), " floor "(3), " labs "(3), " rint (3)