Choose where you’d like to start

tan()

Overview

The tan() function takes a number as an argument, and returns the trigonometric tangent of that number (angle measured in radians).

Return Type

  • Decimal

Syntax

<variable> = <number>.tan();

(OR)

<variable> = tan(<number> );
ParameterDescriptionData type
<variable>Variable which will contain the returned value.DECIMAL
<number>The number whose tangent value will be returned.NUMBER or DECIMAL

Examples

number= 90;
tanValue = number.tan();       // returns -1.995200412208242

Get Started Now

Execute