Skip to content

v0.7.0 (Jan 1, 2020)

Compare
Choose a tag to compare
@x448 x448 released this 02 Jan 03:03
· 118 commits to master since this release
60edea9

Changes include:

  • Add (f Float16) Bits() uint16.
  • Update docs and unit test to include the new method.

Bits returns the IEEE 754 binary16 representation of f, with the sign bit of f and the result in the same bit position. Bits(Frombits(x)) == x.

Calling Bits should inline as a simple type cast so it doesn't add bloat while making the API nicer.