xref: /original-bsd/lib/libm/common_source/ceil.3 (revision c3e32dec)
1.\" Copyright (c) 1991, 1993
2.\"	The Regents of the University of California.  All rights reserved.
3.\"
4.\" %sccs.include.redist.man%
5.\"
6.\"     @(#)ceil.3	8.1 (Berkeley) 06/04/93
7.\"
8.Dd
9.Dt CEIL 3
10.Os
11.Sh NAME
12.Nm ceil
13.Nd smallest integral value not greater than x
14.Sh SYNOPSIS
15.Fd #include <math.h>
16.Ft double
17.Fn ceil "double x"
18.Sh DESCRIPTION
19The
20.Fn ceil
21function computes the smallest integral value not less than
22.Fa x .
23.Sh RETURN VALUES
24The
25.Fn ceil
26function returns the smallest integral value
27expressed as a double.
28.Sh SEE ALSO
29.Xr abs 3 ,
30.Xr fabs 3 ,
31.Xr floor 3 ,
32.Xr rint 3 ,
33.Xr ieee 3 ,
34.Xr math.3
35.Sh STANDARDS
36The
37.Fn ceil
38function conforms to
39.St -ansiC .
40