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

dcos

Returns the cosine of value in degrees

Syntax:

dcos(x)
Argument Description
double x The angle in degrees to cosine

Returns: double

Description:

In a right angled triangle dcos(x) = Adjacent / Hypotenuse. If you want to use radians instead of degrees use function cos().

Example:

double value;
value = dcos(-90);

This code will set value to 0.

Example:

double value;
value = dcos(320);

This code will set value to 0,766045.

Back to number_functions

Clone this wiki locally