Support » Plugin: Multi Rating » round up percentage result

  • Resolved Kris

    (@omgb)


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

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

    (@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;
    with:
    echo round($star_result);

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

    • This reply was modified 5 months ago by dpowney.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.