PostgreSQL tand() Function

The PostgreSQL tand() function returns the tangent of the specified number of degrees.

tand() Syntax

This is the syntax of the PostgreSQL tand() function:

tand(number)

Parameters

number

Required. The number used to calculate the tangent, in degrees.

Return value

The PostgreSQL tand() function returns the tangent of the specified number of degrees.

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

tand() Examples

Here are a few examples of the tand() function:

SELECT
    tand(0) AS "tand(0)",
    tand(15) AS "tand(15)",
    tand(30) AS "tand(30)",
    tand(60) AS "tand(60)",
    tand(90) AS "tand(90)",
    tand(180) AS "tand(180)";
-[ RECORD 1 ]------------------
tand(0)   | 0
tand(15)  | 0.26794919243112275
tand(30)  | 0.5773502691896257
tand(60)  | 1.7320508075688774
tand(90)  | Infinity
tand(180) | 0