Skip to content

darccos

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

darccos

Returns the inverse cosine of value in degrees

Syntax:

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

Returns: double

Description:

This function returns the inverse cosine of x in degrees. Any value other than between -1 and 1 returns NaN. If you want to return radians instead of degrees use function arccos().

Example:

double value;
value = darccos(0);

This code will set value to 90.

Example 2:

double value;
value = darccos(5);

This code will set value to NaN.

Back to number_functions

Clone this wiki locally