public static double Scale(double value) { double min = 50.0; double max = 100.0; if(min == max) return 100.0; return 100*(value - min)/(max - min); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)