I noticed the above functions actually use radians so I made some quick functions to convert the degree value entered into radians: Private Function radians(N As Double) As Double
radians = N * (Pi / 180)
End Function
and I called it like:
Private Sub BtnSin_Click()
On Error Resume Next Calc = radians(Calc) Calc = "sin(" & Calc & ")" DoCalc
End Sub
Pi is set as a constant or you can create another function to calculate an estimate of pi like this: Private Function Pi() As Double
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Calculator 7.