Answered by:
How do I multiply a number by pi

Hey,
I'm currently programming a calculator application and I have found myself stuck on multiplying a number by the mathmatical value of PI. The number shall be inputted in to a textbox1 and the result shall be shown in textbox2. Does anyone have a solution to this?
All replys are appreciated
regards Liam
Question
Answers
All replies





I am also having problems showing the results of this calculation as I am retrieving the number to multiply from a textbox named textbox1.
double answer;
double mynumber = textBox1.Text;
answer = mynumber * System.Math.PI;
What would be the best way to convert this and show my message in the same textbox removing the inputted number.
Regards Liam 

Still having problems converting.
double answer;
double mynumber = textBox1.Text;
answer = mynumber * System.Math.PI;
textBox1.Text = answer.toString();
I tried:
mynumber = double.Parse(textBox1.Text);
But this also had problems implicitly converting.
Thanks a lot for all the help so far
regards Liam 
