C#控制textbox中的输入数字固定显示2位小数

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/thanks_hck/article/details/79261607

this.txtPrice.Text = string.Format("{0:#,##0.00}", Convert.ToDouble(input));

猜你喜欢

转载自blog.csdn.net/thanks_hck/article/details/79261607
今日推荐