摘要: 1.System.Globalization.NumberFormatInfo provider = new System.Globalization.NumberFormatInfo();provider.NumberDecimalDigits =intDecLength; //要設定的小數位數double strCashAmt=Convert.ToDouble(this.txtCashAmt.Text); //先把控件內的值轉成doublethis.txtCashAmt.Text = strCashAmt.ToString("N",provider); //再利用ToS 阅读全文
posted @ 2014-01-22 16:27 沙耶 阅读(6718) 评论(0) 推荐(1) 编辑