Standards / Extensions | C or C++ | Dependencies |
---|---|---|
Language Environment |
both | z/OS® V1.10 |
#define __STDC_WANT_DEC_FP__
#include <math.h>
_Decimal32 __atanpid32(_Decimal32 x);
_Decimal64 __atanpid64(_Decimal64 x);
_Decimal128 __atanpid128(_Decimal128 x);
Calculates the value of arctangent(x)/pi.
These functions work in IEEE decimal floating-point format. See IEEE decimal floating-point for more information.
Returns the calculated value expressed in radians.
CELEBA17
⁄* CELEBA17
This example illustrates the __atanpid64() function.
*⁄
#define __STDC_WANT_DEC_FP__
#include <math.h>
#include <stdio.h>
int main(void)
{
_Decimal64 x, y;
x = 5.0DD;
y = __atanpid64(x);
printf("__atanpid64(%Df) = %Df\n", x, y);
}