I have deferred MRT render written in WebGL2. In one of standard (non float) destination textures I have two available byte components, say x and y. I want to pack and lately unpack a floating value with a range [0..100].
How to implement conversion forth and back between between float and two bytes components preserving as much precision as possible?