SQLite atan() Function

The SQLite atan() function returns the arctangent of the specified number.

Syntax

Here is the syntax of the SQLite atan() function:

atan(number)

Parameters

number

Required. A number used to calculate the arctangent.

Return value

The SQLite atan() function returns the arctangent of the specified number.

If the parameter is NULL, the atan() function will return NULL.

Examples

This example shows the basic usage of the SQLite atan() function:

SELECT
    atan(2.5),
    atan(0.2),
    atan(-0.5),
    atan(-0.2);
 atan(2.5) = 1.19028994968253
 atan(0.2) = 0.197395559849881
atan(-0.5) = -0.463647609000806
atan(-0.2) = -0.197395559849881