tan

Description

Calculates the tangent of the angle specified 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

Documentation Transact-SQL Users Guide

Functions atan, atn2, degrees, radians