Ah but it takes infinite amount of time for the ball to stop and start rolling on the floor and infinite amount of time means the ball bounces infinitely often so the ball never stops to bounce and never rolls along the ground. It is easy to calculate how long the ball stays in the air on each bounce a formula from high school physics tells you that the potential energy of an object is m x g x h so if you know the potential energy then you know how high the ball is and if you know how high the ball is then you know how long it will take for it to fall to the ground but no matter how long you wait the ball will have some potential energy left so it will be bouncing no matter how long you wait.