Skip to content

Commit

Permalink
CHORE : 챌린지 성공률 백분율로 반환
Browse files Browse the repository at this point in the history
  • Loading branch information
gaguriee committed Aug 10, 2024
1 parent 5da6bab commit cecf308
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private ChallengeResponse createChallengeResponseWithSupport(Challenge challenge
}

private double calculateSuccessRate(Challenge challenge) {
return Double.parseDouble(df.format((double) challenge.getSuccessCount() / challenge.getParticipantCount()));
return Double.parseDouble(df.format(((double) challenge.getSuccessCount() / challenge.getParticipantCount()) * 100));
}
}

0 comments on commit cecf308

Please sign in to comment.