Changed float->int rounding code a bit.