search for: ieee_exp

Displaying 1 result from an estimated 1 matches for "ieee_exp".

2011 Aug 10
1
Floats in Microsoft Basic format
...g. convert the C code below) thanks t #include <string.h> /* for strncpy */ int _fmsbintoieee(float *src4, float *dest4) { unsigned char *msbin = (unsigned char *)src4; unsigned char *ieee = (unsigned char *)dest4; unsigned char sign = 0x00; unsigned char ieee_exp = 0x00; int i; /* MS Binary Format */ /* byte order => m3 | m2 | m1 | exponent */ /* m1 is most significant byte => sbbb|bbbb */ /* m3 is the least significant byte */ /* m = mantissa byte */ /*...