Calculate percentage given value, minim and maximum It's my first time on Math.stack; be gentle.
I have slider with a range between -1 and 1.
If my slider is at 0 I'd expect it to be at 0%
If it were at either -1 or 1 I'd expect it to be 100% 
However it must take into account those won't always be the max & min
When I've got a minimum value of -0.1896362 and maximum value of 0.1383057 I get a bit confused
This is what I've got so far (This is wrong):
percentage = ((slider-minimum)/(maximum-minimum)) *100
I've read this post which is similar to my problem, but the negative numbers are messing things up. 

So the slider (call it $x$) goes from 100% at $x=-1$ to 0% at $x=0$ and 100% at $x=1$.
Then use the absolute value function to get these values:
$$\text{percentage} = |x| \cdot 100$$
