Name
fieeetomsbin, fmsbintoieee - Perform conversions between
IEEE and MS binary format.
Syntax
#include <math.h>
int fieeetomsbin(src4, dst4)
int fmsbintoieee(src4, dst4)
float *src4, *dst4;
Description
The fieeetomsbin routine converts a single-precision
floating-point number in IEEE (Institute of Electrical and
Electronic Engineers) format to MS (Microsoft) binary
format. The fmsbintoieee routine converts a floating-point
number in MS 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 Microsoft BASIC (which stores
floating-point numbers in the MS binary format), and vice
versa.
The argument src4 points to the float value to be converted.
The result is stored at the location given by dst4.
Return Value
These functions return 0 if the conversion is successful,
and 1 if the conversion causes an overflow.
See Also
dieeetomsbin(DOS), dmsbintoieee(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)