Package list golang-github-beorn7-perks / 4c0e845
Merge pull request #2 from fstab/fix-off-by-one-error-for-small-sample-sizes Fix off-by-one error for small sample sizes Björn Rabenstein authored 5 years ago GitHub committed 5 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
132132 if l == 0 {
133133 return 0
134134 }
135 i := int(float64(l) * q)
135 i := int(math.Ceil(float64(l) * q))
136136 if i > 0 {
137137 i -= 1
138138 }