Rounding float instead of casting to integer.