Closed tommey closed 10 years ago
// this will return a fraction, ie 2 / 3 (string) $exam->grade($answers)->asPercentage(); <-- should be: asFraction();
// this will return a percentage, ie 75 (integer) $exam->grade($answers)->asPercentage();
Indeed. Thanks for the catch. Fixed.
// this will return a fraction, ie 2 / 3 (string) $exam->grade($answers)->asPercentage(); <-- should be: asFraction();
// this will return a percentage, ie 75 (integer) $exam->grade($answers)->asPercentage();