sports_bench_get_batting_average( $at_bats, $hits )

Type

Functions

Section

Stats

Returns the batting average for a hitter.

Parameters

  • $at_bats, integer, required, the number of at bats
  • $hits, integer, required, the number of hits

Returns

  • float, batting average

Since: 1.0

Source: baseball-player-info.php, line 53