Easy Tutorial
❮ Event Onerror Prop Screen Width ❯

JavaScript atan() Method

JavaScript Math Object

Example

Returns the arctangent of a specified number:

Output result:


Definition and Usage

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


Browser Support

All major browsers support the atan() method.


Syntax

Parameter Values

Parameter Description
x Required. Must be a number.

Return Value

Type Description
Number The arctangent of x. The returned value is between -PI/2 and PI/2 radians.

Technical Details

| JavaScript Version: | 1.0 | | --- | --- |


JavaScript Math Object

❮ Event Onerror Prop Screen Width ❯