DataTable dt = new DataTable(); var Result= dt.Compute("1+2*3+2", "");//將運算字串轉換成表示式運算 NumberTxt.Text = Result.ToString();