TAN
The TAN function returns the tangent of Expression (an angle expressed in radians).
SQL syntax
TAN(Expression)Parameters
TAN has the parameter:
| Parameter | Description |
|---|---|
|
|
Operand or column can be any numeric data type or any non-numeric data type that can be implicitly converted to a numeric data type. |
Description
-
If
Expressionis of typeNUMBER, the data type returned isNUMBER. For all other numeric data types, the data type returned isBINARY_DOUBLE. -
If the value of
ExpressionisNULL,NULLis returned.
Example
Use the TAN function to return the tangent of 135 degrees.
Command> SELECT TAN(135 * 3.14159265359/180) "Tangent of 135 degrees" FROM dual; < -.9999999999996898576939651230133793225994 > 1 row found.