What is TAN() in SQL?

Share

The TAN() function returns the tangent of a number. To be more specific, it returns the tangent of a number in the radians float value. Figure 1 shows the mathematical representation of the TAN() function.

Figure 1: Mathematical representation of tangent function

Syntax

TAN(number)

Parameter

This function requires a number as a parameter.

Return Value

TAN() returns the tangent of a number (radians float value) that is sent as a parameter.

Example

/*example showing how to use TAN(X)*/
-- positive number
select TAN(10);
-- negative number
select TAN(-6);
-- fractional number
select TAN(4.6);