M
Mark Reed
I am trying to have two fields, one being a total, the next being a decimal
factor for pecentage. I then want it to calculate the total plus the
percentage factor... for example, 100 is the total, .25 is the
factor...the calculation should come up with 125.
Using the formula below, I get 10025
lbResult.Text = (float.Parse(textBox1.Text)) + (float.Parse(textBox1.Text)
* float.Parse(textBox2.Text)).ToString();
What am I doing wrong?
factor for pecentage. I then want it to calculate the total plus the
percentage factor... for example, 100 is the total, .25 is the
factor...the calculation should come up with 125.
Using the formula below, I get 10025
lbResult.Text = (float.Parse(textBox1.Text)) + (float.Parse(textBox1.Text)
* float.Parse(textBox2.Text)).ToString();
What am I doing wrong?