[Building Sakai] Loss of precision when instructor exports the assessment's results

RAUL SANCHEZ VEGAS raulsv at um.es
Sun Oct 6 23:50:16 PDT 2013


Hi all

We have found an issue related to the loss of precision in the final scores.

Steps to reproduce the issue:

1. The instructor publishes the assessment called "Assessment"(attached 
to this mail).
2. The student answers all questions correctly:

      3 questions: Every question worth 2 points so the student gets 6 
points as total score.

3. The instructor exports the results to an excel file.(using button 
'Export').
4. The total score is 5.999999 instead of 6 points in the excel file. 
The final score is displayed correctly: 6 points on the "Total Scores"  
web page.

This loss of precision only happens sometimes.

It happens in Sakai 2.9.x too(http://qa1-nl.sakaiproject.org/portal/): 
Samigo uses float precision in 2.9.x instead of double precision as 
Samigo does in trunk.

At this example the final score is 6 on the "Total Scores" web page 
while the final score is 5.9999 in the Excel file. The reason is that 
the final score is rounded by the method
[samigo-app]AgentResults.getRoundedFinalScore()  on "Total Scores" web 
page while the final score is not rounded in the Excel file.

Should it be opened a new Jira with this issue?

Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Assessment.zip
Type: application/zip
Size: 3881 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20131007/4d7d5360/attachment.zip 


More information about the sakai-dev mailing list