THE WORLD'S LARGEST WEB DEVELOPER SITE

MySQL ATAN2() Function

❮ MySQL Functions

Example

Return the arc tangent of two values:

SELECT ATAN2(0.50, 1);
Try it Yourself »

Definition and Usage

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

Syntax

ATAN2(n, m)

Parameter Values

Parameter Description
n, m Required. 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 ATAN2(-0.8, 2);
Try it Yourself »

❮ MySQL Functions