A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.snowflake.com/en/sql-reference/functions/atan2 below:

Website Navigation


ATAN2 | Snowflake Documentation

ATAN2

Computes the inverse tangent (arc tangent) of the ratio of its two arguments. For example, if x > 0, then the expression ATAN2(y, x) is equivalent to ATAN(y/x).

The arc tangent is the angle between:

See also:

ATAN

Syntax

Note that the first parameter is the Y coordinate, not the X coordinate.

Arguments
y

This parameter is the Y coordinate of the point at the end of the ray. The data type is DOUBLE.

x

This parameter is the X coordinate of the point at the end of the ray. The data type is DOUBLE.

Returns

The data type of the returned value is DOUBLE.

The returned value is in radians, not degrees.

The returned value is a number in the interval [-pi, pi].

Usage notes Examples
SELECT ATAN2(5, 5);

--------------+
 ATAN2(5, 5)  |
--------------+
 0.7853981634 |
--------------+

Copy


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4