_dieeetomsbin, _dmsbintoieee

Description

Convert between IEEE double value and Microsoft (MS) binary double value.

#include <math.h>

int _dieeetomsbin( double *src8, double *dst8 );

int _dmsbintoieee( double*src8, double*dst8 );

src8 Buffer containing value to convert  
dst8 Buffer to store converted value  

Remarks

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 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 those versions of Microsoft Basic that store floating-point numbers in MS 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.

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

Return Value

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

Compatibility

Standards:None

16-Bit:DOS, QWIN, WIN, WIN DLL

32-Bit:None

See Also

_fieeetomsbin, _fmsbintoieee