X
HOME HTML5 CSS3 JAVASCRIPT SQL PHP5 JQUERY ANGULAR BOOTSTRAP3 XML MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

JavaScript atan() Method

Math Object Reference JavaScript Math Object

Example

Return the arctangent of a specified number:

Math.atan(2);

The result will be:

1.1071487177940904

Try it yourself »


Definition and Usage

The atan() method returns the arctangent of a number as a value between -PI/2 and PI/2 radians.


Browser Support

Method
atan() Yes Yes Yes Yes Yes


Syntax

Math.atan(x)

Parameter Values

Parameter Description
x Required. A number

Technical Details

Return Value: A Number, from -PI/2 to PI/2, or NaN if the value is empty
JavaScript Version: 1.0


Math Object Reference JavaScript Math Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook