I am trying to create a function that takes in three floats and returns a single float from 0-1.
For example if these were the values passed in:
Value: 22000, Min: 22000, Max: 23250
Then it should return 0, but if these were the values passed in:
Value: 23250, Min: 22000, Max: 23250
it would return 1.
And any value between 22000 and 23250 would return a different number like 0.356 or 0.935, with the returned number being higher the closer to the max value it is.
I can't figure out what equations I could use to achieve this.