We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c21d36 commit 478881dCopy full SHA for 478881d
1 file changed
src/main/java/fr/istic/web/rest/ExtendedAPI.java
@@ -2286,8 +2286,8 @@ private void computeNote4Hybrid(StudentResponse resp) {
2286
currentNote = 0;
2287
}
2288
// log.error("question " + resp.question.numero+ " currentNote " + Double.valueOf(currentNote /4));
2289
- if (resp.quarternote == null || Double.valueOf(currentNote * 100).intValue() != resp.quarternote) {
2290
- resp.quarternote = Double.valueOf(currentNote * 100).intValue();
+ if (resp.quarternote == null || Math.round(Double.valueOf(currentNote * 100.0)) != resp.quarternote) {
+ resp.quarternote =(int) Math.round(Double.valueOf(currentNote * 100.0));
2291
StudentResponse.update(resp);
2292
2293
0 commit comments