# floattan

##### Description:

Function floattan get the tangent from a given angle. The input angle may be in radians, degrees or grades.

This function name starts with a lowercase letter. |

GTA/SA-MP use degrees for angles in most circumstances, for example GetPlayerFacingAngle. Therefore, it is most likely you'll want to use the 'degrees' angle mode, not radians.Also note that angles in GTA are counterclockwise; 270° is East and 90° is West. South is still 180° and North still 0°/360°. |

##### Parameters:

(Float:value, anglemode:mode = radian)

float | value | The angle from which to get the tangent. |

int | anglemode | The angle mode to use, depending on the value entered. |

##### Return Values:

The tangent from the value entered.

##### Examples:

public OnGameModeInit() { printf("The tangent from 30° is %f", floattan(30.0, degrees)); // Output: 1 return 1; }

##### Related Functions

*The following functions may be useful, as they are related to this function in one way or another.*

- float: Converts an integer into a float.
- floatstr: Converts a string to a float.
- floatmul: Multiplies two floats with each other.
- floatdiv: Divide one float by another one.
- floatadd: Adds two floats together.
- floatsub: Subtracts one float from another.
- floatfract: Get the fractional part of a float.
- floatround: Round a floating point number to an integer value.
- floatcmp: Compare float values to each other, to validate the comparison.
- floatsqroot: Calculates the square root of given value.
- floatpower: Raises the given value to the power of the exponent.
- floatlog: Allows you to get the logarithm of a float value.
- floatsin: Get the sine from a given angle.
- floatcos: Get the cosine from a given angle.
- floatabs: Returns the absolute value of float.