Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Previous sectionNext section


A scalar numeric function that returns the tangent, in radians, of an angle.


{fn TAN(float-expression)}


Argument Description
float-expression An expression of type FLOAT. This is an angle expressed in radians.


TAN takes any numeric value and returns its tangent. TAN returns NULL if passed a NULL value. TAN treats nonnumeric strings as the numeric value 0.

TAN returns a value of data type FLOAT with a precision of 36 and a scale of 18.

TAN can only be used as an ODBC scalar function (with the curly brace syntax).

You can use the DEGREES function to convert radians to degrees. You can use the RADIANS function to convert degrees to radians.


The following example shows the effect of TAN.

SELECT {fn TAN(0.52)} AS Tangent 
Copy code to clipboard

returns 0.572561.

See Also

FeedbackOpens in a new window