sports_bench_get_ERA( $earned_runs, $innings_pitched, $innings_per_game )

Type

Functions

Section

Stats

Returns the earned run average for a pitcher.

Parameters

  • $earned_runs, integer, required, the number of earned runs given up
  • $innings_pitched, float, required, the number of innings pitched
  • $innings_per_game, int, required, the number of innings per game

Returns

  • float, earned run average

Since: 1.0

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