I have two numbers, a minimum value, and a maximum value.
I also have a percent. This percent helps me find a value between the two numbers, the minimum value and the maximum value.
I cannot figure out how to do this (perhaps because I’ve been staring at the numbers for so long)
For example, say I have a minimum of 0.08, and a maximum of 0.12 and a percent of 0.9 (i.e 90%)
I want to find the value which is 90% of the way between 0.08 and 0.12.
Any ideas?
Thanks
Let $d$ be the positive difference between the minimum and maximum values. Let $p$ be the percent (measured by say $0.9$ instead of $90$%), and $x$ be the minimum value. Then the value $y$ that you are looking for can be found by
$$y=x+pd$$
Intuitively $pd$ gets the position between the min and max that you want, and adding it to $x$ gets you to the actual value you want.