Click to See Complete Forum and Search --> : tangent in degree mode?


AntonioMainenti
03-30-2003, 01:20 AM
The script I'm writing requires a way to get the tangent in degree mode of some numbers, but Math.tan(x) gives it in radian mode. Does anyone know how to get it to do degree mode?

Thanks, Alan.

Ice3T
03-30-2003, 07:40 AM
simply multiply the result by the convertion factor:
X 3.1416/180
ex 1deg = 1X3.1416/180 = 0.01745333