Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 504 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 504 Bytes

IEEE754_binary_encoder

A C library for converting float and double values to binary

Functions

It contains the following function prototypes:

void IEE754_binary64_encode( double, char[8] );
double IEE754_binary64_decode( char[8] );
void IEE754_binary32_encode( float, char[4] );
float IEE754_binary32_decode( char[4] );

Limitations

Subnormal floating point values (values really close to zero) are truncated to zero for simplicity reasons. I may change this someday.