最佳答案
Example:
我试图计算出两个值之间的百分比和第三个值之间的百分比。
Example: The range is 46 to 195. The value 46 would 0%, and the value 195 would be 100% of the range. What percentage of this range is the value 65?
Range-Min = 46
Range 最大值 = 195
inputValue=65
InputPercentage = ?