Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dms(DOS) — OpenDesktop Software Development System 1.0.0d

Media Vault

Software Library

Restoration Projects

Artifacts Sought

     Name
          dieeetomsbin, dmsbintoieee - Perform conversions between MS
          binary and IEEE formats.

     Syntax
          #include <math.h>

          int dieeetomsbin(src8, dst8)
          int dmsbintoieee(src8, dst8)
          double *src8, *dst8;

     Description
          The dieeetomsbin routine converts a double-precision number
          in IEEE (Institute of Electrical and Electronic Engineers)
          format to Microsoft (MS) binary format. The routine
          dmsbintoieee converts a double-precision number in Microsoft
          binary format to IEEE format.

          These routines allow C programs (which store floating-point
          numbers in the IEEE format) to use numeric data in random-
          access data files created with those versions of Microsoft
          BASIC that store floating-point numbers in Microsoft binary
          format, and vice versa.

          The argument src8 is a pointer to the double value to be
          converted. The result is stored at the location given by
          dst8.

     Return Value
          These functions return 0 if the conversion is successful and
          1 if the conversion causes an overflow.

     See Also
          fieeetomsbin(DOS), fmsbintoieee(DOS)

     Notes
          These routines do not handle IEEE NANs (``not a number'')
          and infinities. IEEE denormals are treated as 0 in the
          conversions.

                                                (printed 6/18/89)



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