Hey All,
Why does this give me an answer of "1.29289994049072" and not "1.2929"?Code:MK=1.2949;
txtSL.Text = Convert.ToString(MK-0.0020);
MK is of type "Single".
TIA.
Printable View
Hey All,
Why does this give me an answer of "1.29289994049072" and not "1.2929"?Code:MK=1.2949;
txtSL.Text = Convert.ToString(MK-0.0020);
MK is of type "Single".
TIA.
try:
MK=1.2949;
txtSL.Text = Convert.ToString(MK- (single)0.0020);
Thanks! ;)