title: SeekBar decimal increment
body: <p>I'm trying to create a seekbar where the user can inform a price from <code>$0,000 to $10,000</code>. I already tried to implement the line: <code>float value = ((float)progress / 10.0);</code> but android studio keep giving me the error <code>incompatible types Required: float Found: Double</code></p>
  
  <p>here is the code:</p>
  
  <pre><code>@Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          gas = (TextView) findViewById(R.id.gasTextView);
          SeekBar gasSeekBar = (SeekBar) findViewById(R.id.gasSeekBar);
          gasSeekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
              @Override
              public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
                  float value = ((float)progress / 10.0);
                  gas.setText("Gasolina: "+progress);
              }
  
              @Override
              public void onStartTrackingTouch(SeekBar seekBar) {
  
              }
  
              @Override
              public void onStopTrackingTouch(SeekBar seekBar) {
  
              }
          });
  
          etanol = (TextView) findViewById(R.id.etanolTextView);
          SeekBar etanolSeekBar = (SeekBar) findViewById(R.id.etanolSeekBar);
          etanolSeekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
              @Override
              public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
                  etanol.setText("Etanol: "+progress);
              }
  
              @Override
              public void onStartTrackingTouch(SeekBar seekBar) {
  
              }
  
              @Override
              public void onStopTrackingTouch(SeekBar seekBar) {
  
              }
          });
      }
  </code></pre>