Im just learning C#, and am trying to get a button click to generate and
display the total plus 10%.
I am doing the following, and it works, but does not display to two
decimal places, it goes out to many more. I thought by using DOUBLE, it
would limit it to two places.
Any ideas what I am doing wrong?
private void button1_Click(object sender, System.EventArgs e)
{
double tenper = (float.Parse(tbCheck.Text)*1.10);
label2.Text = tenper.ToString();
}
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!