# Storing a positive floating point number in a known range in two bytes

I know that a number x lies between n and f (f > n > 0). So my idea is to bring that range to [0, 0.65535] by 0.65535 * (x – n) / (f – n). Then I just could multiply by 10000, round and store integer in two bytes. Is it going to… Read More Storing a positive floating point number in a known range in two bytes