title: Convert number to Stars
body: <p>I've created this shortcode that converts a number to a star rating. At the moment, the shortcode works but not fully :</p>
  
  <pre><code>function Shortcode() {
  
  $starNumber = get_field('note_independant');
  
  for($x=1;$x&lt;=$starNumber;$x++) {
      $output .= '&lt;i class="fa fa-star" aria-hidden="true"&gt;&lt;/i&gt;';
  }
  if (strpos($starNumber,',')) {
      $output .= '&lt;i class="fa fa-star-half-o" aria-hidden="true"&gt;&lt;/i&gt;';
      $x++;
  }
  while ($x&lt;=5) {
      $output .= '&lt;i class="fa fa-star-o" aria-hidden="true"&gt;&lt;/i&gt;';
      $x++;
  }
  
  return $output;
  
   }
  
  add_shortcode('helloworld', 'Shortcode');
  </code></pre>
  
  <p>Let say my field value note_independant = 3. </p>
  
  <p>The shortcode output is ★★★ instead of ★★★☆☆.</p>
  
  <p>I have also an issue when using a number with decimal like 3.5. The shortcode won't output half stars... </p>