atan2(Decimal, Decimal) - Amazon IoT Analytics
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

For similar capabilities to Amazon IoT Analytics, explore Amazon Kinesis, Amazon S3, and Amazon Athena. These services provide additional scalability and flexibility to meet your evolving analytics requirements. Learn how here.

atan2(Decimal, Decimal)

Returns the angle, in radians, between the positive x-axis and the (x, y) point defined in the two arguments. The angle is positive for counter-clockwise angles (upper half-plane, y > 0), and negative for clockwise angles Decimal arguments are rounded to double precision before function application.

Examples: atan(1, 0) = 1.5707963267948966

Argument type Argument type Result

Int / Decimal

Int / Decimal

Decimal (with double precision), the angle between the x-axis and the specified (x,y) point

Int / Decimal / String

Int / Decimal / String

Decimal, the inverse tangent of the point described. If a string cannot be converted, the result is Undefined.

Other Value

Other Value

Undefined.