Jump to content

Math.tan example is poor.


kevin_schmidt

Recommended Posts

The example code for Math.tan at:

 

http://www.w3schools.com/jsref/jsref_tan.asp

 

uses:

Math.tan(90)

 

as an example, however Math.tan takes radians, not degrees. Very rarely would you specify 90 radians. I would recommend this be something like:

 

Math.tan(Math.PI)

 

or something similar as well as adding a note mentioning it takes radians.

 

 

Link to comment
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
×
×
  • Create New...