I am very tired so forgive me if the answer is quite obvious ;)
I want to use the output of a slider so that when the slider is at 0 it actually outputs a large value. And when the slider is at its highest point then it outputs something closer to 0. The slider is not important but just using it as a visual idea to get the scenario across.
So basically, if the slider is dropping from e.g.. 4 to 0..... 4, 3, 2, 1, 0...... I actually want it to output 0, 1, 2, 3, 4.
An issue is that I cannot predict the maximum value, as it is based on other changing data. All I know is that the values will never go below 0. So from 0 to "?".
So far maths is failing me so perhaps there is a dead easy solution to this I'm not aware of?
Any tips much appreciated :)