02.07.2013 Views

A/UX® Programmer's Reference

A/UX® Programmer's Reference

A/UX® Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

floor(3M) floor(3M)<br />

NAME<br />

floor, ceil, fmed, fabs - floor, ceiling, remainder,<br />

absolute value functions<br />

SYNOPSIS<br />

*include <br />

double floor (x)<br />

double x;<br />

double ceil (x)<br />

double x;<br />

double fmod (x, y)<br />

double x, y;<br />

double fabs (x)<br />

double x;<br />

DESCRIPTION<br />

floor returns the largest integer (as a double-precision number)<br />

not greater than x.<br />

ceil returns the smallest integer not less than x.<br />

fmod returns the floating-point remainder of the division of x by<br />

y: x if y is zero or if xly would overflow; otherwise the number isf<br />

with the same sign as x, such that x = iy + f for some integer i, and<br />

If I < Iyl.<br />

f abs returns the absolute value of I x I .<br />

SEE ALSO<br />

abs(3C).<br />

February, 1990<br />

RevisionC<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!