cos Function

Retrieves the cosine of a real number.


real cos(real arg)

Parameter

Description

arg

The number of which to find the cosine.

The cosine of the specified number.

The value of the arg parameter must be in radians.

The following code example displays 0.76.

static void cosExample(Args _arg)
{
    real r;
    ;
    r = cos(15);
    print strFmt("Cos of 15 is %1", r);
    pause;
}

Community Additions

ADD
Show: