fcosrno / exam-php

PHP library to create, display, and grade exams.
MIT License
38 stars 7 forks source link

Fix documentation example #1

Closed tommey closed 10 years ago

tommey commented 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();

fcosrno commented 10 years ago

Indeed. Thanks for the catch. Fixed.