llrintd64.3m (2010 09)

l
llrintd64(3M) llrintd64(3M)
(HP Integrity Server Only)
NAME
llrintd64(), llrintd128(), llrintd32() - decimal round to nearest long long int functions
SYNOPSIS
#define __STDC_WANT_DEC_FP__
#include <math.h>
long long int llrintd64(_Decimal64 x);
long long int llrintd128(_Decimal128 x);
long long int llrintd32(_Decimal32 x);
DESCRIPTION
llrintd64() rounds its argument to the nearest long long int
value, rounding according to the
current (decimal) rounding direction mode.
llrintd64() is equivalent to lrintd64(), except that it rounds to
long long int instead of
long int.
llrintd128() is a _Decimal128 version of llrintd64(); it takes a
_Decimal128 argument.
llrintd32() is a _Decimal32 version of llrintd64(); 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 or the rounded value is outside the range of
long long int, then
llrintd64() returns the minimum long long int value and raises the invalid floating-point
exception.
If the rounded value is within the range of
long long int, then llrintd64() raises the inexact
exception if the result differs in value from the argument.
ERRORS
If x is NaN,
llrintd64() sets errno to [EDOM].
If x is ±infinity or the rounded value is outside the range of
long long int, llrintd64() sets
errno to [ERANGE].
SEE ALSO
ceild64(3M), fabsd64(3M), fe_dec_getround(3M), fe_dec_setround(3M), floord64(3M), fmodd64(3M),
llroundd64(3M), lrintd64(3M), lroundd64(3M), rintd64(3M), roundd64(3M), truncd64(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)