_fieeetomsbin, _fmsbintoieee

Description

Convert floating-point numbers between IEEE and Microsoft binary formats.

#include <math.h>

int _fieeetomsbin(float *src4, float *dst4 );

int _fmsbintoieee( float *src4, float *dst4 );

scr4 Value to be converted  
dst4 Converted value  

Remarks

The _fieeetomsbin routine converts a single-precision floating-point number in IEEE (Institute of Electrical and Electronic Engineers) format to Microsoft (MS) binary format.

The _fmsbintoieee routine converts a floating-point 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 Microsoft Basic (which stores floating-point numbers in the Microsoft 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.

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:DOS32X

See Also

_dieeetomsbin, _dmsbintoieee