I am trying to convert a string to a double value in .Net 3.5. Pretty easy so far with
double.Parse(value);
My problem is that values ββwith exponential tags are not converted correctly. Example:
double value = double.Parse("8.493151E-2");
Value must be = 0.0893151 right? But this is not so! Value = 84931.51 !!!
How can it be? I am completely confused!
I read the link in the msdn library and confirmed that values ββlike "8.493151E-2" are supported. I also tried to overload double.Parse () with NumberStyles, but did not succeed.
Please, help!
source share