Skip to content

A C library for converting float and double values to binary

License

Notifications You must be signed in to change notification settings

Daniel-Abrecht/IEEE754_binary_encoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A C library for converting float and double values to binary

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages