Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ceil(3M) — HP-UX 10.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

floor(3M)

fmod(3M)

fabs(3M)

rint(3M)

isinf(3M)

isnan(3M)

ceil(3M)

NAME

ceil() − ceiling function

SYNOPSIS

#include <math.h>

double ceil(double x);

DESCRIPTION

ceil() returns the smallest integer (represented as a double-precision number) not less than x.

To use this function, link in the math library by specifying −lm on the compiler or linker command line. 

RETURN VALUE

If x is ±INFINITY or ±zero, ceil() returns x.

If x is NaN, ceil() returns NaN. 

If the correct value would overflow, ceil() returns HUGE_VAL and sets errno to [ERANGE]. 

ERRORS

If ceil() fails, errno is set to the following value. 

[ERANGE] The correct value would overflow. 

SEE ALSO

floor(3M), fmod(3M), fabs(3M), rint(3M), isinf(3M), isnan(3M). 

STANDARDS CONFORMANCE

ceil(): SVID3, XPG4.2, ANSI C

Hewlett-Packard Company  —  HP-UX Release 10.20:  July 1996

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026