SQLite ATAN2() Function
Definition and Usage
The ATAN2() function returns the arc tangent of y/x, in radians. It uses the signs of both numbers to find the right quadrant.
Note: Some SQLite builds do not include the math functions, because they need the compile option SQLITE_ENABLE_MATH_FUNCTIONS. They work in our editor.
Tip: Also look at ATAN().
Syntax
ATAN2(y, x)
Parameter Values
| Parameter | Description |
|---|---|
| y | Required. The y coordinate |
| x | Required. The x coordinate |
Technical Details
| Return type: | Real |
|---|---|
| Works in: | SQLite 3.35.0 and later |