Input string was not in a correct format #2

后端 未结 10 1277
一向
一向 2020-12-03 21:24
double temp;
temp = (double)Convert.ToDouble(\"1234.5678\");

Hey Lads and Ladies, I can\'t for the life of me figure out why the above line isn\'t

10条回答
  •  青春惊慌失措
    2020-12-03 21:57

    I don't see any problem with the above code.it works fine and prints the value 1234.5678. I have tried it in VS2008. Probably, something to do with locale settings on your machine.

提交回复
热议问题