Codex

VolleyballPlayer::get_hitting_percentage

Gets the hitting percentage for a player.

Parameters

  • int $attacks — The number of attacks.
  • int $kills — The number of kills.
  • int $errors — The number of hitting errors.

Returns

  • float|string — The hitting percentage for the player.

Since: 2.0

Source

  • /includes/classes/sports/volleyball/volleyball-player.php — 54