Smarter
Member
- Joined
- Jan 15, 2010
- Messages
- 763
- Reaction score
- 9
I have been running around in circles trying to produce the correct results I can do on paper and on a calculator with C#.
Variables:
bestX = $7.47
bestZ = 80% (0.8)
Example Problem:
7.47 * 2 = 14.94
14.94 * 0.8 = 11.952
14.94 - 11.952 = 2.988 -- [$2.99]!
My issue:
var blah = (-1*((bestX*2)*bestZ) - (bestX*2)); == -17.93
What the hell am I doing wrong? :-\
Variables:
bestX = $7.47
bestZ = 80% (0.8)
Example Problem:
7.47 * 2 = 14.94
14.94 * 0.8 = 11.952
14.94 - 11.952 = 2.988 -- [$2.99]!
My issue:
var blah = (-1*((bestX*2)*bestZ) - (bestX*2)); == -17.93
What the hell am I doing wrong? :-\
