01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

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, fmod, fabs - floor, ceiling, remainder, absolute value<br />

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 fa.bs (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 x if y is zero, otherwise the number f with the<br />

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

< I Y 1.<br />

Fabs returns I x I .<br />

SEE ALSO<br />

abs(3C).<br />

- 1 -

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

Saved successfully!

Ooh no, something went wrong!