On a Windows PC in Japan, this line of C# throws a format exception:
double d = double.Parse("NaN");
This line executes fine on my PC in the U.S.
Don't know where to begin troubleshooting this one. Any thoughts?
Thanks in advance, Jim
I see what the problem is. Try using the invariant format provider.
double d = double.Parse("NaN", 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