Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ floor(S) — Xenix 2.3.4g

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

abs(S)



     FLOOR(S)                 XENIX System V                  FLOOR(S)



     Name
          floor, fabs, ceil, fmod - Performs absolute value, floor,
          ceiling and remainder 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
          fabs returns |x|.

          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 number f such that x = iy + f, for some
          integer i, and 0 _ f<y.

     See Also
          abs(S)

     Notes
          These routines must be linked by using the -lm linker
          option.



















     Page 1                                           (printed 8/7/87)



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