Ok, perhaps it's my fault (I thought Integer() does floor).  Probably, you should just change Integer to floor.