I am trying to read some data from a xml file, numbers are saved in forms like "-2.000000e+000"
I tried to use "double.Parse" but it returns the number as -2000000!!!! can someone please tell me what I am doing wrong?
Pass CultureInfo.InvariantCulture
to the call to double.Parse
:
double.Parse("-2.000000e+000", CultureInfo.InvariantCulture);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With