3 / 2is considered as integer division, so the result is obtained 1.
Then doing the multiplication between 1and 3.2leads to the advancement of the integer 1to the floating point 1, which leads to 3.2.
The idea is this:
// Both "3" and "2" are integers, so integer division is performed.
3 / 2 == 1
// "3.2" is a floating point value, while "1" is an integer, so "1" is
// promoted to an floating point value.
1 * 3.2 --> 1.0 * 3.2 == 3.2
2.0 Java ( a double), 4.8, . .
, .
: