As long as either the divisor or the dividend is a Double, you have numeric widening implicit conversions which will automatically convert the other argument also to a double. Otherwise, the division is considered as integer division.