String to decimal conversion: dot separation instead of comma

前端 未结 7 1222
野的像风
野的像风 2020-12-05 01:52

I have a string read from a textbox. It contains a comma for decimal separation.

I have NumberFormatInfo.CurrencyDecimalSeparator set to ,

7条回答
  •  有刺的猬
    2020-12-05 02:48

    You are viewing your decimal or double values in Visual Studio. That doesn't respect the culture settings you have on your code.

    Change the Region and Language settings on your Control Panel if you want to see decimal and double values having the comma as the decimal separator.

提交回复
热议问题