Issue Details (XML | Word | Printable)

Key: MDL-13827
Type: Bug Bug
Status: Closed Closed
Resolution: Not a bug
Priority: Major Major
Assignee: Petr Skoda
Reporter: Lael...
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Letter Grades are calculated using decimal numbers when 0 dec pl. have been specified. - resulting in conflicting values where rounding occurs.

Created: 07/Mar/08 04:51 PM   Updated: 22/Sep/09 05:39 PM
Return to search
Component/s: Gradebook
Affects Version/s: 1.9
Fix Version/s: None

Issue Links:
Relates
 

Participants: Helen Foster, Lael... and Petr Skoda
Security Level: None
QA Assignee: Helen Foster
Resolved date: 08/Mar/08
Affected Branches: MOODLE_19_STABLE


 Description  « Hide
Where 0 decimal places have been specified at the site level (this is not configurable at a course level?) and a letter grade is shown - the letter grade seems to be calculated from the underlying decimal value rather than the rounded number shown. This leads to erroneous letter grades being shown.

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Petr Skoda added a comment - 08/Mar/08 10:14 PM
hello,
the grade calculation is similar to Excel - the calculations are always done with 5 decimals precision, the options for decimal places are there only for display (like in Excel).
If you need any rounding of values you need to use calculation formula with round() function.

Petr


Helen Foster added a comment - 09/Mar/08 02:20 AM
Hi Lael,

Thanks for raising this issue. To hopefully avoid confusion in future, it has been noted in the documentation:

http://docs.moodle.org/en/Grade_letters
http://docs.moodle.org/en/Grade_item_settings
http://docs.moodle.org/en/Grade_items


Lael... added a comment - 13/Mar/08 01:40 AM
Thanks Helen and Peter,

to clarify - that means creating a calculated item and rounding off the total to achieve the result?, then assigning that as the full weighted item for the parent category?

I will have a go at this and see. I suspect most people don't really want letter grades calculated to five decimal places though? perhaps there might be a way to include another option for this in the gradebook setup? (to avoid everyone re-doing the same calculation and work-around?)


Petr Skoda added a comment - 13/Mar/08 04:47 AM
Unfortunately there is no easy way around this without adding new db field in grade_items table and making the rounding configurable for each item

Lael... added a comment - 22/Sep/09 05:39 PM
Hey,

This is still an issue - but I just had an epiphany on this issue. If we could allow users to set a grade cut off as a decimal, then this ceases to be an issue (eg set it to 90.5 if you want a 90.6 to round up... which I suspect is how most people deal with such an issue).

Possible?