When I try to take the N th root of a small number using C# I get a wrong number.
For example when I try to take the 3rd root of 1.07, I get 1, which is clearly not true.
Here is the exact code I am using to get the 3rd root.
MessageBox.Show(Math.Pow(1.07,(1/3)).toString());
Can anyone tell me how to solve this problem. I would guess that this is a floating point arithmetic issue, but I don't know how to handle it.
Thanks!