摘要: 摘录自网络,收藏以备用1.NumberFormatInfo类System.Globalization.NumberFormatInfo provider = new System.Globalization.NumberFormatInfo();provider.NumberDecimalDigits =intDecLength; //要设定的小数位数double strCashAmt=Convert.ToDouble(this.txtCashAmt.Text); //先把控件內的值转成doublethis.txtCashAmt.Text = strCashAmt.ToString(" 阅读全文
posted @ 2013-12-05 10:53 晚@风 阅读(391) 评论(0) 推荐(0) 编辑