Half-precision floating-point in Java
You can Use Float.intBitsToFloat() and Float.floatToIntBits() to convert them to and from primitive float values. If you can live with truncated precision (as opposed to rounding) the conversion should be possible to implement with just a few bit shifts. I have now put a little more effort into it and it turned out not quite … Read more