Passer Rating iOS
1.0
iOS demo project for Xcode 4 Unleashed
|
Go to the source code of this file.
Functions | |
float | passer_rating (int comps, int atts, int yds, int tds, int ints) |
Calculate a passer rating, given statistics for a game or career. |
float passer_rating | ( | int | comps, |
int | atts, | ||
int | yds, | ||
int | tds, | ||
int | ints | ||
) |
Calculate a passer rating, given statistics for a game or career.
comps | The number of completed attempts. Must be >= atts. |
atts | The number of attempted passes. Must be >= 0. |
yds | Yards gained from passing. Must be 0 if atts == 0, otherwise >= 0. |
tds | Touchdowns from passing. Must be 0 if atts == 0, otherwise >= 0. |
ints | The number of intercepted passes. Must be 0 if atts == 0, otherwise >= 0. |