Standards / Extensions | C or C++ | Dependencies |
---|---|---|
C/C++ DFP | both | z/OS® V1.11 |
#define __STDC_WANT_DEC_FP__
#include <math.h>
int quantexpd32(_Decimal32 x);
int quantexpd64(_Decimal64 x);
int quantexpd128(_Decimal128 x);
int quantexp(_Decimal32 x); /* C++ only */
int quantexp(_Decimal64 x); /* C++ only */
int qunatexp(_Decimal128 x); /* C++ only */
The quantexp() functions compute the quantum exponent of a finite argument.
The quantexp() functions return the quantum exponent of x.
If x is infinite or NaN, they compute INT_MIN and a domain error occurs.
⁄* CELEBQ03
This example illustrates the quantexpd128() function.
*⁄
#define __STDC_WANT_DEC_FP__
#include <stdio.h>
#include <math.h>
void main(void)
{
_Decimal128 x, y;
x = 4.56DL;
y = quantexpd128(x);
printf("quantexpd128( %DDf ) = %DDf\n", x, y);
}