• Hi Themeboy,

    Quick question. I’ve made a formula for batting average. Formula is working, but there is a possibility where a player might have no batting stats, so it display an error, because 0 as values are calculated.

    Tried to enter letters, -, * and still it calculates 0 and display an error.

    Am i missing something in my formula ? My formula is CS/H ÷ AB

    https://wordpress.org/plugins/sportspress/

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

    (@themeboy)

    Hi @dbsept24,

    Thanks for your question.

    The formula is correct, but a “division by zero” error will occur when AB is zero. The next update (due early next week) will have an error check feature to prevent this issue.

    I’ll let you know when the update is released 🙂

Viewing 1 replies (of 1 total)

The topic ‘Batting average’ is closed to new replies.