Round floating point before casting to int for more accurate ticks