title: Android show plurals in both integer and float
body: <p>My target is to show text like "1 star" "2.5 stars" "3 stars".</p>
  
  <p>which is remove <code>.0</code> for float value like <code>1.0, 2.0 etc.</code> But for the value with <code>.5</code> show the float value <code>2.5 3.5 etc.</code></p>
  
  <p>Is this possible to use android <code>plurals</code> ?</p>
  
  <p>I used this way but doesn't work.
  <strong>plurals.xml</strong></p>
  
  <pre><code>&lt;plurals name="hotel_card_rating_text"&gt;
          &lt;item quantity="zero"&gt;@string/text_zero&lt;/item&gt;
          &lt;item quantity="one"&gt;@string/text_one&lt;/item&gt;
          &lt;item quantity="two"&gt;@string/text_two&lt;/item&gt;
          &lt;item quantity="few"&gt;@string/text_few&lt;/item&gt;
          &lt;item quantity="many"&gt;@string/text_many&lt;/item&gt;
          &lt;item quantity="other"&gt;@string/text_other&lt;/item&gt;
      &lt;/plurals&gt;
  </code></pre>
  
  <p><strong>strings.xml</strong></p>
  
  <pre><code>&lt;resources&gt;
      &lt;string name="text_zero"&gt;%.1f stars&lt;/string&gt;
      &lt;string name="text_one"&gt;1 star&lt;/string&gt;
      &lt;string name="text_two"&gt;%.1f stars&lt;/string&gt;
      &lt;string name="text_few"&gt;%.1f stars&lt;/string&gt;
      &lt;string name="text_many"&gt;%.1f stars&lt;/string&gt;
      &lt;string name="text_other"&gt;%.1f stars&lt;/string&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p><strong>test code</strong></p>
  
  <pre><code> DecimalFormat format = new DecimalFormat();                    
      float rating = getRating();
      getStarText().setText(getContext().getResources().getQuantityString(R.plurals.hotel_card_rating_text, (int) rating, format.format(rating)));
              }
  </code></pre>