I have to unpack a binary file where some values are half-precision floats (i.e. float16
).
I read it from the binary stream by using the specification API dataView.getUint16(0)
.
How can I convert a number in uint16
formatback to
float16` format using JavaScript?