Skip to content

Java library for encoding/decoding floating point numbers to/from IEEE 754 bit strings

License

Notifications You must be signed in to change notification settings

Kerbaya/ieee754lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

ieee754lib

Java library for encoding/decoding floating point numbers to/from IEEE 754 bit strings

Encoding, decoding, and conversion of all basic interchange formats is supported:

Name Common name Exponent bits Significand bits Exponent bias
binary16 Half 5 10 15
binary32 Single 8 23 127
binary64 Double 11 52 1023
binary128 Quadruple 15 112 16383
binary256 Octuple 19 236 262143

Arbitrary formats are also supported by providing custom values for:

  • Exponent bits
  • Significand bits
  • Exponent bias

Latest release: ieee754lib-1.0.1.jar

About

Java library for encoding/decoding floating point numbers to/from IEEE 754 bit strings

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages