Hi lads, got a method here for my gui slider. Basically we have these numbers to work with:
- The Range of the slider.
These two variables could be between -1 to 1 or even 0 to 10. This is range1 and range2. They dictate the range of values the slider can have.
- The Value of the slider. This variable is a value between the range above.
What I want to do is use the two range variables and the value between that range to calculate a final percentage between 0 and 99. How do I do it?
- The Range of the slider.
These two variables could be between -1 to 1 or even 0 to 10. This is range1 and range2. They dictate the range of values the slider can have.
- The Value of the slider. This variable is a value between the range above.
What I want to do is use the two range variables and the value between that range to calculate a final percentage between 0 and 99. How do I do it?