diff --git a/src/main/java/org/sunbird/assessment/service/AssessmentUtilServiceV2Impl.java b/src/main/java/org/sunbird/assessment/service/AssessmentUtilServiceV2Impl.java index db1f881df..3a67e92ad 100644 --- a/src/main/java/org/sunbird/assessment/service/AssessmentUtilServiceV2Impl.java +++ b/src/main/java/org/sunbird/assessment/service/AssessmentUtilServiceV2Impl.java @@ -686,7 +686,7 @@ private Double handleCorrectAnswer(Double sectionMarks, Map ques private Double handleIncorrectAnswer(int negativeMarksValue,Double sectionMarks, Map questionSetSectionScheme, Map proficiencyMap) { logger.info("Handling incorrect answer scenario..."); if (negativeMarksValue > 0) { - sectionMarks = sectionMarks - (((double)negativeMarksValue /100 ) * (double) questionSetSectionScheme.get((String)proficiencyMap.get(Constants.QUESTION_LEVEL))); + sectionMarks = sectionMarks - (((double)negativeMarksValue /100 ) * (int) questionSetSectionScheme.get((String)proficiencyMap.get(Constants.QUESTION_LEVEL))); } logger.info("Incorrect answer scenario handled successfully."); return sectionMarks;