Division is a basic operation and the rules are as follows. If one of the two operands is floating point, the result is floating point, and if both operands are integers, it is divisible. When an integer uses floating point, it needs to be converted into (float) or (double).
For example:
int a = 5;
int b = 2;
Then the value of a/b is 2 (divisible), and the value of a/b is 2.5 with (double), and a forced type conversion (double) is enough.