Math.atan
Math.atan
Function
Anyway. Returns the arctangent of value in radians.
Syntax
Math.atan(value)
Parameters
| Parameters | Type | Required | Default value | Description |
|---|---|---|---|---|
| value | Number | Yes | None | The number involved in the calculation. |
Return value
| Type | Description |
|---|---|
| Int/Float | Returns the arctangent of value in radians. An Int is returned for integer results, and a Float for non-integer or non-finite results. |
Example
result = Math.atan(0) // Output: 0 print result
Notes
- The return value unit is radians.