remainderd64(3M) remainderd64(3M)
NAME
remainderd64(), remainderd128(), remainderd32() - decimal remainder functions
SYNOPSIS
DESCRIPTION
The function determines the remainder r = x - ny when y is a nonzero number. The value n is the integral value nearest the exact value
x/y; when | n - x/y | = 1/2, the value n is chosen to be even.
The function is independent of the decimal rounding mode.
is a version of it takes arguments and returns a result.
is a version of it takes arguments and returns a 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 option.
Make sure your program defines and then includes
Link in the math library by specifying or on the linking command line.
For more information, see the at the following site:
RETURN VALUE
If y x returns x.
If x y is a nonzero number, returns x.
If y is 0, returns NaN and raises the invalid exception.
If x returns NaN and raises the invalid exception.
If x or y is NaN, returns NaN.
ERRORS
If x or y is 0, sets to
SEE ALSO
fabsd64(3M), fmodd64(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 Integrity Server Only remainderd64(3M)