ceil, ceilf, ceill - ceiling function: smallest integral value not less than argument
#include <math.h> double ceil(double x); float ceilf(float x); long double ceill(long double x); Link with -lm. Feature Test Macro Requirements for glibc (see feature_test_macros(7)): ceilf(), ceill(): _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
These functions return the smallest integral value that is not less than x. For example, ceil(0.5) is 1.0, and ceil(-0.5) is 0.0.
These functions return the ceiling of x. If x is integral, +0, -0, NaN, or infinite, x itself is returned.
No errors occur. POSIX.1-2001 documents a range error for overflows, but see NOTES.
For an explanation of the terms used in this section, see attributes(7). ┌─────────────────────────┬───────────────┬─────────┐ │Interface │ Attribute │ Value │ ├─────────────────────────┼───────────────┼─────────┤ │ceil(), ceilf(), ceill() │ Thread safety │ MT-Safe │ └─────────────────────────┴───────────────┴─────────┘
C99, POSIX.1-2001, POSIX.1-2008. The variant returning double also conforms to SVr4, 4.3BSD, C89.
SUSv2 and POSIX.1-2001 contain text about overflow (which might set errno to ERANGE, or raise an FE_OVERFLOW exception). In practice, the result cannot overflow on any current machine, so this error-handling stuff is just nonsense. (More precisely, overflow can happen only when the maximum value of the exponent is smaller than the number of mantissa bits. For the IEEE-754 standard 32-bit and 64-bit floating- point numbers the maximum value of the exponent is 128 (respectively, 1024), and the number of mantissa bits is 24 (respectively, 53).) The integral value returned by these functions may be too large to store in an integer type (int, long, etc.). To avoid an overflow, which will produce undefined results, an application should perform a range check on the returned value before assigning it to an integer type.
This page is part of release 4.09 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. 2016-03-15 CEIL(3)
More Linux Commands
gnutls_anon_free_server_credentials(3) - API function.......
gnutls_anon_free_server_credentials.3 - This structure is complex enough to manipulate directly thus this helper function is provided in order to free (dealloca
perl5181delta(1) what is new for perl v5.18.1 (Man Page)....
This document describes differences between the 5.18.0 release and the 5.18.1 release. If you are upgrading from an earlier release such as 5.16.0, first read p
Tcl_FSAccess(3) - procedures to interact with any filesystem
There are several reasons for calling the Tcl_FS API functions (e.g. Tcl_FSAccess and Tcl_FSStat) rather than calling system level functions like access and sta
glMultiTexCoord4dARB(3gl) - set the current texture coordina
glMultiTexCoordARB specifies texture coordinates in one, two, three, or four dimensions. glMultiTexCoord1ARB sets the current texture coordinates to (s, 0, 0, 1
Devel::SelfStubber(3pm) - generate stubs for a SelfLoading m
Devel::SelfStubber prints the stubs you need to put in the module before the __DATA__ token (or you can get it to print the entire module with stubs correctly p
gnutls_pkcs11_delete_url(3) - API function - Linux man page
This function will delete objects matching the given URL. Note that not all tokens support the delete operation. RETURNS On success, the number of objects delet
brk(2) - change data segment size - Linux manual page.......
brk() and sbrk() change the location of the program break, which defines the end of the processs data segment (i.e., the program break is the first location aft
Tcl_SetWideIntObj(3) - manipulate Tcl objects as integer val
These procedures are used to create, modify, and read Tcl objects that &#9474; hold integral values. &#9474; The different routines exist to accommodate differe
pnmquantall(1) run Pnmquant on a bunch of files all at once,
This program is part of Netpbm(1) pnmquantall takes a bunch of Netpbm image files as input, chooses ncolors colors to best represent all of the images, maps the
Tcl_GetReturnOptions(3) - retrieve or record information abo
The Tcl_SetReturnOptions and Tcl_GetReturnOptions routines expose the &#9474; same capabilities as the return and catch commands, respectively, in &#9474; the f
statvfs(3) - get file system statistics - Linux manual page
The function statvfs() returns information about a mounted filesystem. path is the pathname of any file within the mounted filesystem. buf is a pointer to a sta
pkey(1ssl) public or private key processing tool (Man Page)
The pkey command processes public or private keys. They can be converted between various forms and their components printed out. COMMAND OPTIONS -inform DER|PEM