Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ unordered(3c) — DG/UX 4.30

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fpgetround(3C)

isnan(3C)



     ieeefp(3c)                 DG/UX 4.30                  ieeefp(3c)



     NAME
          finite, unordered, copysign - IEEE floating-point routines

     SYNOPSIS
          #include <ieeefp.h>

          int finite (x)
          float x;
            or
          double x;

          int unordered (x, y)
          float x;
            or
          double x;
          float y;
            or
          double y;

          double copysign (x, y)
          double x;
          double y;

     DESCRIPTION
          Copysign returns the value of x with the same sign as y.

          Finite returns true (1) if its argument is finite: that is,
          -infinity < x < +infinity.  Otherwise finite returns false
          (0).

          Unordered returns true (1) if its arguments are unordered;
          otherwise it returns false (0).  The arguments x and y are
          unordered if either or both are NaNs (Not-a-Number).

          Both finite and unordered are implemented as macros included
          in  <ieeefp.h>.  Both accept either single- or double-
          precision arguments.  To access finite as a function, the
          user may suppress the macro definition:

             #include <ieeefp.h>
             #undef finite

          The finite function is also accessed when <ieeefp.h> is not
          included.

     SEE ALSO
          fpgetround(3C), isnan(3C).

     DIAGNOSTICS
          None of these routines generates any exception.





     Licensed material--property of copyright holder(s)         Page 1



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