Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ floor(S) — System V/386 Software Development System 3.2.2b

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     FLOOR(S)                  UNIX System V                  FLOOR(S)



     Name
          floor, ceil, fmod, fabs - floor, ceiling, remainder,
          absolute value functions

     Syntax
          #include <math.h>

          double floor (x)
          double x;

          double ceil (x)
          double x;

          double fmod (x, y)
          double x, y;

          double fabs (x)
          double x;

     Description
          floor returns the largest integer (as a double-precision
          number) not greater than x.

          ceil returns the smallest integer not less than x.

          fmod returns the floating-point remainder of the division of
          x by y: x if y is zero or if x/y would overflow; otherwise
          the number f with the same sign as x, such that x = iy + f
          for some integer i, and | f| <| y|.

          fabs returns the absolute value of x, | x|.

     See Also
          abs(S)

     Standards Conformance
          ceil, fabs, floor and fmod are conformant with:
          AT&T SVID Issue 2, Select Code 307-127;
          The X/Open Portability Guide II of January 1987;
          ANSI X3.159-198X C Language Draft Standard, May 13,
          1988;
          IEEE POSIX Std 1003.1-1988 with C Standard Language-
          Dependent System Support;
          and NIST FIPS 151-1.

                                                (printed 6/20/89)



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