摘要:
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 阅读全文