Just a quick question here is my battle calculation for damage in my game
(p1.atk/2)+((p1.atk/2*(p1.atk/Enemy.def)))+floor(random(1,4))
And then i subtract damage from the enemy HP.
But i would like to end up with only whole numbers.... how do i go about doing that?