Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ceil(3M) — SunOS 5.6

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

floor(3M)

isnan(3M)

attributes(5)

ceil(3M)

NAME

ceil − ceiling value function

SYNOPSIS

cc [ flag ... ] file ... −lm [ library ... ]

#include <math.h>

double ceil(double x);

DESCRIPTION

The ceil() function computes the smallest integral value not less than x.

RETURN VALUES

Upon successful completion, ceil() returns the smallest integral value not less than x, expressed as a type double. 

If x is NaN, NaN is returned. 

If x is ±Inf or ±0, x is returned. 

ERRORS

No errors will occur. 

USAGE

The integral value returned by ceil() as a double may not be expressible as an int or long int.  The return value should be tested before assigning it to an integer type to avoid the undefined results of an integer overflow. 

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
MT-Level MT-Safe

SEE ALSO

floor(3M), isnan(3M), attributes(5)

SunOS 5.6  —  Last change: 29 Dec 1996

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