## Syntax ```mermaid %%{init: { 'theme': 'base', 'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' }, 'themeVariables': { 'fontSize': '11px', 'fontFamily': 'Arial' } }}%% flowchart LR Start((START)) --> ATAN2[ATAN2]:::quoted ATAN2 --> End((END)) ``` ## Purpose The `ATAN2` SQL function returns the angle whose tangent is the quotient of two specified numbers. See also [[TAN]] and [[ATAN]]. Parameters: - y: the y coordinate of a point. - x: the x coordinate of a point. Returns: A number which represents the angle whose tangent is the quotient of two specified numbers. ## Examples `ATAN2` retrieves the angle of the tangent of the point (2, 0): ```sql select atan2(0, 2) -------- 0 ```