remove float opts.

This commit is contained in:
Nan Deng 2014-06-12 11:45:38 -07:00
parent 71835f9bc4
commit 3440b100a1

View File

@ -78,9 +78,9 @@ func TestPercentiles(t *testing.T) {
ss := uint64Slice(data).Percentiles(ps...)
for i, s := range ss {
p := ps[i]
d := uint64(float64(N) * (float64(p) / 100.0))
d := uint64(N * p / 100)
if d != s {
t.Errorf("%v \\%tile data should be %v, but got %v", float64(p)/100.0, d, s)
t.Errorf("%v percentile data should be %v, but got %v", p, d, s)
}
}
}