progress method

double progress(
  1. int min,
  2. int max
)

Implementation

double progress(int min, int max) {
  return (this - min) / (max - min);
}