Jump to content
Sign in to follow this  
nhatlinhvietnam

How to use degree for defaut

Recommended Posts

nhatlinhvietnam

I have made a program about Maths,I use tan(45)

$test = tan(45)
Msgbox(0,"Tan 45",$test)

And result is not 1!

I think this problem about Radian and Degree,how i change defaut from radian to degree?

Share this post


Link to post
Share on other sites
BlackDragonBE

Of course the value isn't one...

Tan(45) = 1.61977519 or 92.8062822 degrees

Share this post


Link to post
Share on other sites
nhatlinhvietnam

Of course the value isn't one...

Tan(45) = 1.61977519 or 92.8062822 degrees

Sorry,i used atan

$test = atan(45)
Msgbox(0,"Tan 45",$test)

Share this post


Link to post
Share on other sites
PsaltyDS

Sorry,i used atan

$test = atan(45)
Msgbox(0,"Tan 45",$test)
Dog ate your help file? The example script under ATan() even includes conversion to degrees.

:D


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×