title: change progress bar into double
body: <p>PROGRESS BAR:</p>
  
  <pre><code>ProgressBar pb = (ProgressBar) findViewById(R.id.progressbar);
  pb.setProgress(0);
  int k = (int)max;
  pb.setMax(k);
  int j = (int)(cost);
  pb.setProgress(j);
  </code></pre>
  
  <p>this code for a progress bar that only take an int value i want to change the code to take a double value</p>