摘要:
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
沙耶
阅读(6739)
评论(0)
推荐(1)

浙公网安备 33010602011771号