title: How to get whole number rating in custom ratingbar in android
body: <p>I am geting the decimal values like 1.0,1.5,2.0,2.5,etc...,when i clicks the stars</p>
  
  <p>How to get whole number rating in custom ratingbar?</p>
  
  <p>Is it Possible?</p>
  
  <p>ratingbar.setOnRatingBarChangeListener(new OnRatingBarChangeListener()</p>
  
  <pre><code>{
  
      public void onRatingChanged(RatingBar ratingBar, float rating, boolean fromUser)
      {   
  
          Toast.makeText(Rating.this, "New Rating: " + rating, Toast.LENGTH_SHORT).show(); 
  
      }});
  }
  </code></pre>