I'm making a breakout game where when the ball hits the paddle, the angle changes based on where it hits. I'm using the speedx = cos(angle)*velocity and speedy=sin(angle)*velocity formulas. The problem is that what gets returned is a fraction, and trying to move an object around the canvas in fractional increments doesn't work. Anything i'm missing or any tips?

Thanks and sorry for the rushed post