S
Shawn B.
Greetings,
I have the expression that works in Excel, Javascript, and VB.NET:
B1 = 18
10^(3*(B1)/1130)*6
Result: 6.697903112
When I evaluate in C#,
float B1 = 18;
double x;
x = (3*B1/1130) * 6;
x = Math.Pow(x, 10);
I get the wrong result.
Funny, when I add that Math.Pow part to VB.NET and JScript.NET, I get the
same incorrect result.
How can I get the correct result in C#?
Thanks,
Shawn
I have the expression that works in Excel, Javascript, and VB.NET:
B1 = 18
10^(3*(B1)/1130)*6
Result: 6.697903112
When I evaluate in C#,
float B1 = 18;
double x;
x = (3*B1/1130) * 6;
x = Math.Pow(x, 10);
I get the wrong result.
Funny, when I add that Math.Pow part to VB.NET and JScript.NET, I get the
same incorrect result.
How can I get the correct result in C#?
Thanks,
Shawn