I have several arrays of numbers. I need to convert each number in them to a value between 1 and 100. The lowest value in each array should be 1. The highest value in each array should be 100.
I can get a value between 0 and 100 by using $X$ = value, $Y$ = Array Min, $Z$ = Array Max: $$\frac{X-Y}{Z-Y}*100$$ The answer to my riddle appears to be reducing the size of $Y$ (Array Min) by some small amount. If my math is correct, solving for A in the following equation should give me my answer. Unfortunately, I don't know how to solve for A. $$\frac{Y-YA}{Z-YA}*100=1$$ So, my question is: What does $A$ equal? What is the logic required to solve for it?