SLTDV / Choice-iOS

선택의 순간에 Choice
8 stars 0 forks source link

[피드백 #98] 투표 백분율 로직 수정 #99

Closed Mindohyeon closed 1 year ago

Mindohyeon commented 1 year ago

제목

투표 결과에 백분율에 대한 요구사항 변경에 따라 로직을 변경했습니다.

작업 내용

NaN 일 때의 조건 삭제

해당 부분은NaN 값을 Int 로 강제 형변환 시킬 때 생겼던 문제로,

Thread 1: Fatal error: Double value cannot be converted to Int because it is either infinite or NaN

현재는 sum 값이 0일 때의 조건을 추가해 NaN 조건은 삭제했습니다.