title: how to set a seekbars progress with a decimal value that is a float, accuratly?
body: <p>hey guys i am trying to make a set temperature app which has a seek bar and a textview. the readings of my temperature include values like 33.3 and 34.5. I know the code fore setting a seekbars progress is</p>
  
  <pre><code>seekbarTemperature.setProgress(int);
  </code></pre>
  
  <p>but i want to use float values like 33.3 or 39.8. if i convert a float into an int it rounds the value up to a whole number like 33 or 34. this will not position my seekbar properly because my seekbar will be positioned at 33 when my textview says 33.3. As i have also set the seekbar to increment or decrement by 0.1 it is vital that my seekbar is positioned accurately to the decimal. So can someone tell me how to set the seekbars progress position exactly to i.e. 33.4 not 33 or 34?</p>