double value = 0.0; inPut_4 inPut4 = new inPut_4(); inPut4.Open("COM3"); value = (double)inPut4.getInPut4_Temp(); txtCurrent.Text = value.ToString("f"); inPut4.Close(); inPut4 = null; value = double.Parse(txtCurrent.Text); double temp = (value - 4) / 16 * 70 - 10; txtTemp.Text = temp.ToString("f1") + "℃";
目前暂无任何回答
- 0 回答
- 0 关注
- 984 浏览
添加回答
举报
0/150
提交
取消