Tuesday, 8 January 2013

Microsoft Dynamics AX 2012 R2 - acos Function

Retrieves the arc cosine of a real number.


  • Argument values outside the –1 to 1 range generate the following run-time error, "Argument for trigonometric function out of range."


  • real acos(real arg)


  • Parameter: arg
  • Description: The number to retrieve the arc cosine of.

Return Value

  • The arc cosine of arg.


  • X++
static void acosExample(Args _args)
    real r;
    str  s;
    r = acos(0.0);
    s = strFmt("The arc cosine of 0.0 is %1 ", r);
    print s;

My above blog is based on Microsoft's Official information.

I hope this blog about 'Microsoft Dynamics AX 2012 R2 - acos Function' was informative. Please feel free to leave your comments.

No comments:

Post a Comment