Question: Do the trig functions use degree # or radian #s?
Reply from Richard Rost:
Oooh... it's been a while since I've actually used any trig functions in any of my code. If memory serves, I think all of the ASP/VB functions use values in RADIANS. You can use the following to convert to degrees:
Dim PI PI = 4 * ATN(1) ' 3.14159-ish degrees = radians * 180 / PI
And to go the other way:
radians = degrees * PI / 180
Wow... it's all coming back to me now. :)
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
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
Active Server Pages 103.