Support » Plugin: Multi Rating » round up percentage result

  • Resolved Kris


    how to get rid of the decimal numbers in the percentage results. need to present result in whole numbers

Viewing 1 replies (of 1 total)
  • Plugin Author dpowney


    Hi @omgb,

    The premium version has a setting to set the number of decimal places. This feature is not available in the free version I’m sorry.

    But if you’re comfortable with PHP code, you could customize the templates to round to the nearest whole number using the round() php function.

    For example, in the rating-result-star-rating.php template file, you could replace this line:
    echo $star_result;
    echo round($star_result);

    Take a look at how the template system works. I hope this helps,

    • This reply was modified 1 year, 7 months ago by dpowney.
Viewing 1 replies (of 1 total)
  • The topic ‘round up percentage result’ is closed to new replies.