Function Reference > Functions > TAN
  

TAN

Returns the tangent of a numeric value (expressed in radians).

Syntax

TAN( numeric_value )
Argument
Required/
Optional
Description
numeric_value
Required
Numeric datatype. Numeric data expressed in radians (degrees multiplied by pi divided by 180). Passes the numeric values for which you want to calculate the tangent. You can enter any valid expression.

Return Value

Double value.
NULL if a value passed to the function is NULL.

Example

The following expression returns the tangent for all values in the DEGREES column:
TAN( DEGREES * 3.14159 / 180 )
DEGREES  
RETURN VALUE
70
2.74747741945531
50
1.19175359259435
30
0.577350269189672
5
0.0874886635259298
18
0.324919696232929
89
57.2899616310952
NULL
NULL