Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27472

Help with math.tan

$
0
0
I am trying to use the math.tan function but it is using the radians as the answer and I need it to use degrees. Here is an example:

My calculator on my computer shows this in degrees

Attachment 94903

My code:
Dim result As Double
result = Tan(40)
lblResult.Text = result

I get this as the answer: -1.1172149309239 which is in radians.

I want degrees, from the calc image.


Thank You
Allen
Attached Images
 

Viewing all articles
Browse latest Browse all 27472

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>