If you divide an integer with an integer, the result will be an integer, regardless of the type of variable that you store it in.
If you divide a double by an integer or the other way around, the result will be a double.
Try adding .0 to one of the numbers.
Oh wow really.. I'm so dumb.. Thanks for your reply ^^