title: decreasing and increasing float increment android
body: <p>I am trying to increase and decrease the volume of tones via onscreen buttons. I have the code here:</p>
  
  <pre><code>//variables
  float leftVolume = 0.5f;
  float rightVolume = 0.5f;
  
  public void lowerVolume(View view)
  { float decrement = 0.2f;
      rightVolume -= decrement;
      leftVolume -= decrement;
      Log.d("Values","This is the value of volume"+ leftVolume);
  }
  
  public void raiseVolume(View view)
  { float increment = 0.2f;
      rightVolume = ++increment;
      leftVolume = ++increment;
      Log.d("Values","This is the value of volume"+ rightVolume);
  }
  </code></pre>
  
  <p>the log is showing up some crazy values, such as hen i click rasieVolume, it goes to 1.2f and stays there.     </p>