# dtan

## Returns the tangent of val, where val is in
degrees.

**Syntax:**

dtan(val);

Argument |
Description |

val |
The angle (in degrees) to return the tangent of. |

**Returns:** Real

### Description

In a right angled triangle *dtan(val) = Opposite /
Adjacent* where "val" is one of the three angles.

**NOTE:** A vast number of values (90, or -90 for example)
will error with this function due to their returning infinity, a
graph representation of this would produce asymptotes at these
values.

**Example:**

val = dtan(45);

This will set "val" to 1.

##### © Copyright YoYo Games Ltd. 2015 All Rights Reserved