File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
core/domain/src/main/java/com/withpeace/withpeace/core/domain/model/balancegame Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ android {
1010 defaultConfig {
1111 applicationId = " com.withpeace.withpeace"
1212 targetSdk = 34
13- versionCode = 17
14- versionName = " 2.3.2 "
13+ versionCode = 18
14+ versionName = " 2.3.3 "
1515
1616 testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
1717 vectorDrawables {
Original file line number Diff line number Diff line change @@ -19,11 +19,13 @@ data class BalanceGame(
1919) {
2020 fun getAPercentage (): Int {
2121 val totalSum = optionACount.toDouble() + optionBCount.toDouble()
22-
22+ if (id== 7L ) {
23+ println (totalSum)
24+ }
2325 if (totalSum == 0.0 ) {
2426 return 0
2527 }
26- return ((optionACount.toDouble() / totalSum) * 100 ).roundToInt()
28+ return ((optionACount* 100 .toDouble() / totalSum)).roundToInt()
2729 }
2830
2931 fun getBPercentage (): Int {
You can’t perform that action at this time.
0 commit comments