samequantumd64.3m (2010 09)

s
samequantumd64(3M) samequantumd64(3M)
(HP Integrity Server Only)
NAME
samequantumd64(), samequantumd128(), samequantumd32() - decimal samequantum functions
SYNOPSIS
#define __STDC_WANT_DEC_FP__
#include <math.h>
_Bool samequantumd64(_Decimal64 x, _Decimal64 y);
_Bool samequantumd128(_Decimal128 x, _Decimal128 y);
_Bool samequantumd32(_Decimal32 x, _Decimal32 y);
DESCRIPTION
The samequantumd64()
function determines if the quantum exponents of x and y are the same.
samequantumd128()
is a _Decimal128 version of samequantumd64()
; it takes _Decimal128
arguments.
samequantumd32()
is a _Decimal32 version of samequantumd64()
; it takes _Decimal32 argu-
ments.
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
samequantumd64() returns 1 or 0 according as the quantum exponents of x and y are the same or
different.
If both arguments are NaN, or both are ±infinity,
samequantumd64()
returns 1.
If exactly one argument is NaN, or exactly one is ±infinity,
samequantumd64()
returns 0.
samequantumd64()
raises no floating-point exceptions.
ERRORS
No errors are defined.
SEE ALSO
quantexpd64(3M), quantized64(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)