tan

Description

Returns the tangent of the specified angle (in radians).

Syntax

tan(angle)

Parameters

angle

is the size of the angle in radians, expressed as a column name, variable, or expression of type float, real, double precision, or any datatype that can be implicitly converted to one of these types.

Examples

Example 1

select tan(60)
-------------------- 
           0.320040

Usage

tan, a mathematical function, returns the tangent of the specified angle (measured in radians).

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute tan.

See also

For general information about mathematical functions, see “Mathematical functions”.

Functions atan, atn2, degrees, radians