Skip to content
Vašek edited this page Jan 13, 2019 · 3 revisions

dtan

Returns the tangent of value in degrees

Syntax:

dtan(x)
Argument Description
double x The angle in degrees to tangent

Returns: double

Description:

In a right angled triangle dtan(x) = Opposite / Adjacent. If you want to use radians instead of degrees use function tan().

This function will accept any number excpept 90 degrees plus-minus multiples of 180. In that case the function return error due to returning infinity.

Example:

double value;
value = dtan(0);

This code will set value to 0.

Example:

double value;
value = dtan(-245);

This code will set value to -2,144507.

Back to number_functions

Clone this wiki locally