# Tan(float)

> Returns the tangent of angle f in radians.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static float Tan(float f)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) |             |

### Remarks

Additional Resources: [Mathf.Cos](/engine/6000.0/script-reference/unityengine/mathf/cos.md), [Mathf.Sin](/engine/6000.0/script-reference/unityengine/mathf/sin.md).

### Examples

```csharp
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour
{
    void Example()
    {
        print(Mathf.Tan(0.5F));
    }
}
```
