I have to make elemtary calculations on a double, but it is not working. I have 4 variables of type double. I need a 'balance' by taking the first and subtracting the other three. I display Owed, Overpaid, or Balanced depending on the out come. Variable 'balance' shows in Eclipse debugger as 0.0. Here is what is displaying
2648.28
2678.4
0.0
-30.12
1.2779236E-4 (balance should be 0.0)
The balance above seems to be random also.
What gives????
2648.28
2678.4
0.0
-30.12
1.2779236E-4 (balance should be 0.0)
The balance above seems to be random also.
What gives????