草庐IT

c# - 字符串 "0.080"加倍使 80.00

这个问题在这里已经有了答案:HowdoIparseastringwithadecimalpointtoadouble?(18个答案)关闭9年前。我在c#中遇到这个问题,我想将一个字符串转换为double。textBoxKostOnderhoud.Text="0.08";kost.OnderhoudKost=double.Parse(textBoxKostOnderhoud.Text);这使我的数据库中出现了80.00,但我不知道为什么。这个问题有解决办法吗?这就是我将值添加到数据库(mysql)的方式publicboolinsert(Kostkost){stringquery="INS