using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace 实例048对计算结果进行四舍五入
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void label1_Click(object sender, EventArgs e)
{
}
private void btn_Get_Click(object sender, EventArgs e)
{
double P_dbl_d1, P_dbl_d2;//定义两个变量用做TryParse方法的输出参数
if (double.TryParse(txt_add1.Text, out P_dbl_d1) && double.TryParse
记一次“四舍五入”算法设计
最新推荐文章于 2023-01-17 11:52:22 发布