cos Function

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Retrieves the cosine of a real number.

real cos(real arg)

Parameters

Parameter

Description

arg

The number of which to find the cosine.

Return Value

The cosine of the specified number.

Remarks

The value of the arg parameter must be in radians.

Example

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;
}

See also

acos Function

asin Function

atan Function

cosh Function

sin Function

sinh Function

tan Function

tanh Function

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).