double相加的问题
double a=0;
a+=Convert.ToDouble(this.textBox1.Text);
a+=Convert.ToDouble(this.textBox2.Text);
this.textBox1.Text是1.4 this.textBox2.Text是1.4
最后得到的值a为2.800000000001
为什么?
a+=Convert.ToDouble(this.textBox1.Text);
a+=Convert.ToDouble(this.textBox2.Text);
this.textBox1.Text是1.4 this.textBox2.Text是1.4
最后得到的值a为2.800000000001
为什么?
...全文


