MQL4 Reference Math Functions MathTan

MathTan

The function returns a tangent of a number.

double  MathTan(
   double  rad      // argument in radians
   );

Parameters

rad

[in]  Angle in radians.

Return Value

Tangent of rad. If rad is greater than or equal to 263, or less than or equal to -263, a loss of significance in the result occurs, in which case the function returns an indefinite number.

Note

Instead of MathTan() you can use tan().

See also

Real types (double, float)