Computation Error
Yes, a couple of leading zero's and a semi colon,
double var2 = 0.0054;
double var3 = var1 -(0.5*var2);
V
Yes, a couple of leading zero's and a semi colon,
double var2 = 0.0054;
double var3 = var1 -(0.5*var2);
V
You agree to website policy and terms of use
I have a very simple formula that is returning strange results.
double var1 = 1.27943;
double var2 = .0054
double var3 = var1 -(.5*var2);
The result is that var3 is set to -2.05777. I don't understand how that number is being calculated. Am I missing something?