I am new in programming completely. This is my first lesson. I know 0%. We are trying OOP Windows Form app. SO how can I make it so there is only 3/4 numbers after the comma. The Code:
double TgG(double x)
{
return Math.Tan(x*Math.PI/180);
} //TanG
private void button1_Click(object sender, EventArgs e)
{
double x, y;
x= double.Parse(textBox1.Text);
y = TgG(x);
label2.Text = y.ToString();
} //TanG(x) button click