在.NET中,当我从1.35072减去1.35时,显示.000719999999。如何在使用double
时获得.00072?.NET使用双打时的麻烦
TOTKILO.Text = KILO.Text * TOUCH.Text * 0.01; //here 1.35072
TextBox10.Text = TextBox9.Text * TextBox8.Text * 0.01; //here 1.35
K = Val(TOTKILO.Text) - Val(TextBox10.Text); //here it shows 0.00719999
你提的问题是非常不清楚 - 请你可以尝试和编辑您的问题,使其更易于理解什么是你正在尝试做的,你有什么用的问题。 – Justin 2011-03-08 04:12:51
噢,上帝,我的眼睛:( – 2011-03-08 04:16:05
@eldarerathis你应该得到一枚奖牌或什么! – Justin 2011-03-08 04:34:37