---
name: "tg"
type: command
status: ok
groups: ["Math - Geometry"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/tg
revid: 319798
updated: 2022-05-13T09:25:29Z
---

# tg

*Command · Math - Geometry · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

## Description

Identical to [tan](../commands/tan.md)

## Syntax

```sqf
tg x
```

**Parameters:**

- `x`: [Number](../topics/Number.md)

**Returns:** [Number](../topics/Number.md)

## Examples

### Example 1

```sqf
_tangent = tg 45; // Result is 1
```

## See also

[tan](../commands/tan.md) · [sin](../commands/sin.md) · [cos](../commands/cos.md)

<sub>Source: [BI Community Wiki — tg](https://community.bistudio.com/wiki/tg) (revision 319798).</sub>
