Bugfix for percentil calculation

Floating point needed, otherwise you always get the for
metric.snapshot.value(0)

Current workaround - floating points like "[ 90.0, 95.0, 99.0]" in the array - results in ugly metricnames like "metricname.p90.0"