Possible Duplicate:
Division in C++ not working as expected
Turns out my program has been returning wrong results, so I decided to break the code into little pieces. After setting breakpoint, turns out that...
double test3 = ((2 - 1) / 2);
...equals 0 according to C++ compiler. I have no idea why. Can someone explain it to me?
I'm using MS Visual Studio Premium 2012