cos Function

Retrieves the cosine of a real number.


real cos(real arg)

Parameter

Description

arg

The number to return the cosine of. Specify arg in radians.

The cosine of arg.

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

Community Additions

ADD
Show: