MySQL ATAN() Function
THE WORLD'S LARGEST WEB DEVELOPER SITE

MySQL ATAN() Function

❮ MySQL Functions

Example

Return the arc tangent of a number:

SELECT ATAN(2.5);
Try it Yourself »

Definition and Usage

The ATAN() function returns the arc tangent of a number or the arc tangent of n and m.

Syntax

ATAN(number)

OR:

ATAN(n, m)

Parameter Values

Parameter Description
number A numeric value
n, m Two numeric values to calculate the arc tangent of

Technical Details

Works in: MySQL 5.7, MySQL 5.6, MySQL 5.5, MySQL 5.1, MySQL 5.0, MySQL 4.1, MySQL 4.0, MySQL 3.23

More Examples

Example

Return the arc tangent of two values:

SELECT ATAN(-0.8, 2);
Try it Yourself »

❮ MySQL Functions