bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL ATAN() Function

Concept visual

MySQL ATAN() Function

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Example

Return the arc tangent of a number:

SELECT ATAN(2.5);

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);

Previous

❮ MySQL Functions

Next

Previous

MySQL ASIN() Function

Next

MySQL ATAN2() Function