How to write code for sin, cos, tan in VB net so it can calculate the sin,cos,tan of an angle when the input is in radian

  • Thread starter Thread starter newmember1_29
  • Start date Start date
N

newmember1_29

Guest
This is for an advanced calculator, so when my input is sin 90 i want it to give me sin 90 degree = 1, but instead it gives me 0,88

Dim cosinus As Double
cosinus = Double.Parse(txtDisplay.Text)
cosinus = Math.Sin(cosinus * Math.PI / 180)
txtDisplay.Text = System.Convert.ToString(cosinus)

Continue reading...
 
Back
Top