<div class="meta" robots="noindex">

</div>

Method

# Xojo.Math.Tan

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2020r2. Please use `Tan</api/math/tan>` as a replacement.

</div>

## Description

Returns the tangent of the specified value.

## Sample code

Calculate the tangent:

``` xojo
Using Xojo.Math

Const Pi = 3.14159
Dim d As Double
d = Tan(45 * Pi / 180) ' d = 1.0 which is the tangent of a 45 degree angle
```

## Compatibility

All project types on all supported operating systems.
