110,535
社区成员
发帖
与我相关
我的任务
分享
double tmp = default(double);
if (!string.IsNullOrEmpty(textBox1.Text))
{
if (double.TryParse(textBox1.Text, out tmp))
{
tmp = Math.Round(tmp,2);
textBox2.Text = tmp.ToString()
}
}