When I try to take the Nth root of a small number using C #, I get the wrong number.
For example, when I try to take the third root of 1.07, I get 1, which is clearly wrong.
Here is the exact code that I use to get the third root.
MessageBox.Show(Math.Pow(1.07,(1/3)).toString());
How to solve this problem?
I would suggest that this is a floating point arithmetic problem, but I don't know how to handle it.
source
share