TAN Function

Purpose

Returns the tangent of the specified angle expressed in radians.

Syntax

TAN(x)

Parameters

x is a floating-point value representing an angle and cannot be an odd multiple of Π/2.

Description

The TAN function returns the tangent of the angle x expressed in radians. The result has the same data type as x.

Examples

TAN(0.0)    /* returns 0.0 */

Restrictions

A TAN operation on floating-point decimal data is actually performed using the floating-point binary operation. Thus, the range of the operands and the result of the operation are limited to the ranges for floating-point binary numbers.