schooltool-developers team mailing list archive
-
schooltool-developers team
-
Mailing list archive
-
Message #00246
Re: Average returned as integer in the gradebook
On Wed, Sep 22, 2010 at 6:48 PM, Douglas Cerna <douglascerna@xxxxxxxxx> wrote:
> I just noticed that the gradebook returns the average of a worksheet as integer.
>
> According to the README.txt functional doctest in the gradebook package:
>
> ----- %< -----
> We can get a student average for the worksheet, an integer percentage that
> can later be used to formulate a letter grade.
> ----- %< -----
>
> However the int(round(...)) approach used in the getWorksheetTotalAverage method of the gradebook loses a little precision. Is this ok?
Actually, I guess it is not, since it will return "surprising" values.
--Tom
Follow ups
References