Passer Rating iOS  1.0
iOS demo project for Xcode 4 Unleashed
Functions
Passer Rating/rating.c File Reference
#include "rating.h"
Include dependency graph for rating.c:

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.

Function Documentation

float passer_rating ( int  comps,
int  atts,
int  yds,
int  tds,
int  ints 
)

Calculate a passer rating, given statistics for a game or career.

Parameters:
compsThe number of completed attempts. Must be >= atts.
attsThe number of attempted passes. Must be >= 0.
ydsYards gained from passing. Must be 0 if atts == 0, otherwise >= 0.
tdsTouchdowns from passing. Must be 0 if atts == 0, otherwise >= 0.
intsThe number of intercepted passes. Must be 0 if atts == 0, otherwise >= 0.
Returns:
The passer rating
See also:
http://en.wikipedia.org/wiki/Quarterback_Rating
 All Classes Files Functions Variables Properties Defines