ceil(), ceilf()

round to smallest integral value greater than or equal to x 

Function


SYNOPSIS

#include <math.h>

double ceil(double x)

float ceilf(float x)


DESCRIPTION

The ceil() and ceilf() functions return the smallest integral value greater than or equal to x.

The ceilf() function is a single-precision version of ceil().


RETURN VALUES

ceil() returns the rounded up value based on x.

If x is NaN, NaN is returned. If the return value would overflow, HUGE_VAL is returned.


CONFORMANCE

ceil(): ANSI/ISO 9899-1990

ceilf(): PTC MKS Toolkit UNIX APIs extension


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
abs(), fabs(), floor(), ieee(), math(), rint()


PTC MKS Toolkit 10.4 Documentation Build 39.