remove floating points from calculations