I notice that I have two different result when I compile this operation in java, and python.
10 / 3 + 2 * 4 / 3 - 3
result in java = 2.0
in python = 3.0
I also execute this operation in many calculators and the result is 3.0 can anyone explain how java deal with this?
double var = 10/3+2*4/3-3;
System.out.println(var);