Return the arctangent of a specified number:
The result will be:
The atan() method returns the arctangent of a number as a value between -PI/2 and PI/2 radians.
![]()
The atan() method is supported in all major browsers.
| Parameter | Description |
|---|---|
| x | Required. A number |
| Type | Description |
|---|---|
| Number | A Number, from -PI/2 to PI/2, or NaN if the value is empty |
| JavaScript Version: | 1.0 |
|---|
JavaScript Math Object
Your message has been sent to W3Schools.