fmaxd64.3m (2010 09)

f
fmaxd64(3M) fmaxd64(3M)
(HP Integrity Server Only)
NAME
fmaxd64(), fmaxd128(), fmaxd32() - decimal maximum value functions
SYNOPSIS
#define __STDC_WANT_DEC_FP__
#include <math.h>
_Decimal64 fmaxd64(_Decimal64 x, _Decimal64 y);
_Decimal128 fmaxd128(_Decimal128 x, _Decimal128 y);
_Decimal32 fmaxd32(_Decimal32 x, _Decimal32 y);
DESCRIPTION
The fmaxd64() function determines the maximum numeric value of its arguments.
fmaxd128() is a _Decimal128 version of fmaxd64(); it takes
_Decimal128 arguments and
returns a
_Decimal128 result.
fmaxd32() is a _Decimal32 version of fmaxd64(); it takes
_Decimal32 arguments and returns a
_Decimal32 result.
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 one argument is NaN and the other is numeric,
fmaxd64() returns the numeric argument.
If both arguments are NaN,
fmaxd64() returns NaN.
ERRORS
No errors are defined.
SEE ALSO
fdimd64(3M), fmind64(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)