Standards / Extensions | C or C++ | Dependencies |
---|---|---|
C/C++ DFP | both | z/OS® V1.11 |
#define __STDC_WANT_DEC_FP__
#include <math.h>
_Decimal32 log1pd32(_Decimal32 x);
_Decimal64 log1pd64(_Decimal64 x);
_Decimal128 log1pd128(_Decimal128 x);
_Decimal32 log1p(_Decimal32 x); /* C++ only */
_Decimal64 log1p(_Decimal64 x); /* C++ only */
_Decimal128 log1p(_Decimal128 x); /* C++ only */
If successful, log1p() returns the Log (1.0 + x) The value of x must be greater than -1.0.
⁄* CELEBL27
This exaxmple illustrates the log1pd128() function.
*⁄
#define __STDC_WANT_DEC_FP__
#include <math.h>
#include <stdio.h>
void main(void)
{
_Decimal128 x, y;
x = 23.2DL;
y = log1pd128(x);
printf("log1pd128( %DDf ) = %DDf\n", x , y);
}