replace ~~ with Math.round as it's faster now
rstats support