Watch
2
0
Fork
You've already forked ieee754b16
0
Functions for converting to/from IEEE754 binary16 values.
  • Java 75%
  • C 21.6%
  • Makefile 3.3%
  • CSS 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-31 18:42:52 +01:00
.forgejo Update workflows. 2026-07-31 18:42:52 +01:00
com.io7m.ieee754b16.core Begin next development iteration. 2024-05-08 15:48:57 +00:00
com.io7m.ieee754b16.tests Begin next development iteration. 2024-05-08 15:48:57 +00:00
src/site/resources Update site metadata. 2025-08-09 15:06:02 +00:00
.gitignore Update .gitignore. 2024-05-07 16:01:41 +00:00
doc7m-books.json Add doc7m-books.json 2026-07-31 18:36:43 +01:00
Makefile Re-check table generation according to paper 2017-06-17 11:47:37 +00:00
pom.xml Migrate project. 2026-06-27 09:31:48 +01:00
README-algo.txt Switch to accurate conversion 2017-06-18 17:33:09 +00:00
README-CHANGES.xml Mark release 3.0.1 2024-05-08 15:48:50 +00:00
README-LICENSE.txt Update LICENSE 2023-08-13 21:07:22 +00:00
README.in Update README. 2026-06-27 09:36:47 +01:00
README.md Update README. 2026-06-27 09:36:47 +01:00

ieee754b16

Maven Central Maven Central (snapshot) Java Version

com.io7m.ieee754b16

ieee754b16

Java functions to convert to and from the IEEE754 binary16 type.

Features

  • Conversion between double/float and binary16 values.
  • High coverage test suite (100%, minus an unreachable private constructor).
  • OSGi-ready
  • JPMS-ready
  • ISC license.

Usage

The package uses the char type to store values of the binary16 type. To convert a double-precision value 32.0 to binary16 format:

final char k = Binary16.packDouble(32.0);

To unpack values from the binary16 format:

final double r = Binary16.unpackDouble(k);