quantexpd64.3m (2010 09)

q
quantexpd64(3M) quantexpd64(3M)
(HP Integrity Server Only)
NAME
quantexpd64(), quantexpd128(), quantexpd32() - decimal quantum exponent functions
SYNOPSIS
#define __STDC_WANT_DEC_FP__
#include <math.h>
int quantexpd64(_Decimal64 x);
int quantexpd128(_Decimal128 x);
int quantexpd32(_Decimal32 x);
DESCRIPTION
The quantexpd64()
function computes the quantum exponent of x.
The signed integral coefficient of x can be computed as
scalbnd64(x, -quantexpd64(x)).
quantexpd128()
is a _Decimal128 version of quantexpd64()
; it takes a _Decimal128 argu-
ment.
quantexpd32()
is a _Decimal32 version of quantexpd64()
; it takes a _Decimal32 argument.
These math functions are supported for HP-UX 11i Version 3 September 2008 Update and forward.
USAGE
To use any of these functions, compile with the
+decfp option.
Make sure your program defines
__STDC_WANT_DEC_FP__
and then includes <math.h>.
Link in the math library by specifying
-lm or -l:libm.a on the linking command line.
For more information, see the HP-UX floating-point guide for HP Integrity servers at the following site:
http://www.hp.com/go/fp
.
RETURN VALUE
If x is ±infinity or NaN,
quantexpd64()
returns INT_MIN and raises the invalid floating-point excep-
tion.
ERRORS
If x is ±infinity or NaN,
quantexpd64()
sets errno to [EDOM].
SEE ALSO
ilogbd64(3M), quantized64(3M), samequantumd64(3M), math(5).
STANDARDS CONFORMANCE
These functions conform to ISO/IEC TR 24732, "Extension for the programming language C to support
decimal floating-point arithmetic".
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (2 pages)