This is probably a very stupid question, but ..
I have 3 values, for example, you can call them minX, currentX and maxX. im looking for a way to calculate the percentage maxX that currentX represents. for example, if maxX is 50, and minX is 40, and currentX is 45, then I want to get 50%, it's all pretty simple, but im problem is that one or more of my variables is a negative number.
Any help would be appreciated let me know if I don't explain myself well enough
source share