decimal aa;aa = decimal.Parse(textBox1.Text);textBox1.Text= aa.ToString("0.00"); 或者textBox1.Text= aa.ToString("f2"); 在文本框中输入100,执行代码后,变为100.00