MariaDB: ATAN2 Function
This MariaDB tutorial explains how to use the MariaDB ATAN2 function with syntax and examples.
Description
The MariaDB ATAN2 function returns the arc tangent of n and m.
Syntax
The syntax for the ATAN2 function in MariaDB is:
ATAN2( n, m )
Parameters or Arguments
- n and m
- The two values used to calculate the arc tangent.
Note
- The signs of n and m are used to determine the quadrant for the result from the ATAN2 function.
Applies To
The ATAN2 function can be used in the following versions of MariaDB:
- MariaDB 10
Example
Let's look at some MariaDB ATAN2 function examples and explore how to use the ATAN2 function in MariaDB.
For example:
SELECT ATAN2(1, 3); Result: 0.3217505543966422 SELECT ATAN2(-1.3, 2); Result: -0.5763752205911837 SELECT ATAN2(PI(), 4); Result: 0.6657737500283538
Advertisements