J
jack0987
Guest
Sometimes I get scientific notation as an answer to a math operation in a text box.
I need to avoid this and also do not need an answer with more than 8 or 10 decimal places.
For example, lets say the answer is 10.01234567890123 then an answer of 10.0123456789 is desired.
How might I do this?
My present code:
double a;
double b;
double ans;
ans = a / b;
answerTextBox.Text = ans.ToString();
Continue reading...
I need to avoid this and also do not need an answer with more than 8 or 10 decimal places.
For example, lets say the answer is 10.01234567890123 then an answer of 10.0123456789 is desired.
How might I do this?
My present code:
double a;
double b;
double ans;
ans = a / b;
answerTextBox.Text = ans.ToString();
Continue reading...