Skip to content

Commit 1938923

Browse files
authored
Merge pull request #136 from statsig-io/evaluatepartial
Properly evaluate fractional pass percentages
2 parents 825ebd8 + 1e311e9 commit 1938923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/statsig/sdk/Evaluator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ internal class Evaluator(
236236
'.' +
237237
(getUnitID(user, rule.idType) ?: "")
238238
)
239-
.mod(10000UL) < rule.passPercentage.toULong().times(100UL)
239+
.mod(10000UL) < (rule.passPercentage.times(100.0)).toULong()
240240

241241
return ConfigEvaluation(
242242
false,

0 commit comments

Comments
 (0)