Hi folks, I'm new to the forum so I hope I have placed this post in the appropriate spot.
I am doing some programming in a Photoshop script that will display an average value within a range, as seen in image below.
I have a problem with finding a percentage of a value within the range. Below you can see the math that I have been applying but it only appears to work up to a point.
I am not a mathematician by any means and this is baffling me. Initially I was reducing the average value by the minimum value of the range (15.5 - 3 = 12.5). That prevented the overage but messed up lower values ( $6 became $3 and showed as zero on the line).
Is there a way that I can determine the percentage of the average range without going over. I am working on the basis that the distance between the minimum and maximum is 100%. My line is drawn as a percentage.
Any help would be most gratefully appreciated.
Paul
I am doing some programming in a Photoshop script that will display an average value within a range, as seen in image below.
I have a problem with finding a percentage of a value within the range. Below you can see the math that I have been applying but it only appears to work up to a point.
I am not a mathematician by any means and this is baffling me. Initially I was reducing the average value by the minimum value of the range (15.5 - 3 = 12.5). That prevented the overage but messed up lower values ( $6 became $3 and showed as zero on the line).
Is there a way that I can determine the percentage of the average range without going over. I am working on the basis that the distance between the minimum and maximum is 100%. My line is drawn as a percentage.
Any help would be most gratefully appreciated.
Paul