What's wrong with the format changed to other the same error if you enter exactly these numbers conditionally on 25 the line?

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp2
 public partial class Form1 : Form
 public Form1()

 private void button1_Click(object sender, EventArgs e)
 double x, y, z, a, b, q;
 a = Convert.ToDouble(textBox1.Text);
 b = Convert.ToSByte(textBox2.Text);
 q = Convert.ToSByte(textBox3.Text);
 x = Convert.ToSByte(textBox4.Text);
 y = Convert.ToDouble(textBox5.Text);

 z =( Math.Sqrt((a + Math.Cos(x) * Math.Log10(q)) / (b + y * Math.Sin(x))));

 listBox1.Items.Add(" When a=" + a);
 listBox1.Items.Add(" b=" + b);
 listBox1.Items.Add(" q=" + q);
 listBox1.Items.Add(" x=" + x);
 listBox1.Items.Add(" y=" + y);
 listBox1.Items.Add("z=" + z);


 private void button2_Click(object sender, EventArgs e)

 { Application.Exit();

April 7th 20 at 11:57
1 answer
April 7th 20 at 11:59
Cosines and sines expect arguments in radians, and you must be his degree hectic.

PS of Course I didn't think where you have it in 25 line, and what do you have for error. But the elixir of telepathy it gives itself felt.
types of irreducible
double b = Convert.ToSByte(textBox2.Text);
for example
Text = "two" - Bryana.McDermott commented on April 7th 20 at 12:02

Find more questions by tags C#