MySQL ATAN() Function

Example

Return the arc tangent of a number:

SELECT ATAN(2.5);
Try it Yourself »

Definition and Usage

The ATAN() function returns the arc tangent of one or two numbers.

Syntax

ATAN(number)

OR:

ATAN(a, b)

Parameter Values

Parameter Description
number A numeric value
a, b Two numeric values to calculate the arc tangent of

Technical Details

Works in: From MySQL 4.0

More Examples

Example

Return the arc tangent of two values:

SELECT ATAN(-0.8, 2);
Try it Yourself »

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.