Purpose
You can call this function to return the hyperbolic tangent of a number. The return value falls in the range of (-1,1).
Syntax
TANH(number)
Parameters
number is of a numeric data type such as NUMBER, FLOAT, BINARY_FLOAT, or BINARY_DOUBLE or any data type that can be implicitly converted to a numeric data type.
Return type
If number is of the BINARY_FLOAT data type, the return type is BINARY_DOUBLE. Otherwise, the return type is a numeric data type same as that of number.
Examples
The following example returns the hyperbolic tangent of 1.
obclient> SELECT TANH(1) FROM DUAL;
+-------------------------------------------+
TANH(1)
+-------------------------------------------+
.7615941559557648881194582826047935904128
+-------------------------------------------+
1 row in set