Skip to content

Commit 478881d

Browse files
committed
update round for hybrid value
1 parent 6c21d36 commit 478881d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/fr/istic/web/rest/ExtendedAPI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2286,8 +2286,8 @@ private void computeNote4Hybrid(StudentResponse resp) {
22862286
currentNote = 0;
22872287
}
22882288
// 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();
2289+
if (resp.quarternote == null || Math.round(Double.valueOf(currentNote * 100.0)) != resp.quarternote) {
2290+
resp.quarternote =(int) Math.round(Double.valueOf(currentNote * 100.0));
22912291
StudentResponse.update(resp);
22922292
}
22932293

0 commit comments

Comments
 (0)