ceil3
Ceiling function: smallest integral value not less than argument
Usage
#include <math.h>
double ceil(double x); float ceilf(float x); long double ceill(long double x);
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 <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
Library
Math library (libm, -lm)
Overview
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.
Return value
These functions return the ceiling of x.
If x is integral, +0, -0, NaN, or infinite, x itself is returned.
Errors
No errors occur.
Attributes
For an explanation of the terms used in this section, see attributes(7).
| Interface | Attribute | Value |
| ceil(), ceilf(), ceill() | Thread safety | MT-Safe |
Releases
19 releases since Debian 1.1 (Buzz); the text changed 13 times.