Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

drem(3m) [hpux man page]

remainder(3M)															     remainder(3M)

NAME
remainder(), remainderf(), remainderl(), remainderw(), remainderq(), drem(), dremf(), dreml(), dremw(), dremq() - remainder functions SYNOPSIS
HP Integrity Server Only DESCRIPTION
The function returns the floating-point 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 rounding mode. Integrity Server Only is equivalent to It is provided in HP-UX to facilitate importing code from other platforms. and are versions of and they take arguments and returns a result. and are versions of and they take arguments and returns a result. and are version of and they take arguments and returns an result. and are equivalent to and on HP-UX systems. USAGE
To use these functions, compile either with the default option or with the and options. To use (for Integrity servers) or compile also with the option. Make sure your program includes Link in the math library by specifying on the compiler or linker command line. RETURN VALUE
If y x returns x. If x y is a nonzero number, returns x. If x or y is NaN, returns NaN. If y is zero, returns NaN and raises the invalid exception. If x returns NaN and raises the invalid exception. ERRORS
If y is zero or x is infinite, sets to Integrity Server Only HP-UX functions on Integrity servers do not set by default. For setting, compile with the option and the (default) option. SEE ALSO
fmod(3M), fabs(3M), remquo(3M), math(5). STANDARDS CONFORMANCE
: SVID3, XPG4.2, IEEE-754, ISO/IEC C99 (including Annex F, "IEC 60559 floating-point arithmetic") : ISO/IEC C99 (including Annex F, "IEC 60559 floating-point arithmetic") remainder(3M)

Check Out this Related Man Page

remainder(3M)															     remainder(3M)

NAME
remainder(), remainderf(), remainderl(), remainderw(), remainderq(), drem(), dremf(), dreml(), dremw(), dremq() - remainder functions SYNOPSIS
HP Integrity Server Only DESCRIPTION
The function returns the floating-point 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 rounding mode. Integrity Server Only is equivalent to It is provided in HP-UX to facilitate importing code from other platforms. and are versions of and they take arguments and returns a result. and are versions of and they take arguments and returns a result. and are version of and they take arguments and returns an result. and are equivalent to and on HP-UX systems. USAGE
To use these functions, compile either with the default option or with the and options. To use (for Integrity servers) or compile also with the option. Make sure your program includes Link in the math library by specifying on the compiler or linker command line. RETURN VALUE
If y x returns x. If x y is a nonzero number, returns x. If x or y is NaN, returns NaN. If y is zero, returns NaN and raises the invalid exception. If x returns NaN and raises the invalid exception. ERRORS
If y is zero or x is infinite, sets to Integrity Server Only HP-UX functions on Integrity servers do not set by default. For setting, compile with the option and the (default) option. SEE ALSO
fmod(3M), fabs(3M), remquo(3M), math(5). STANDARDS CONFORMANCE
: SVID3, XPG4.2, IEEE-754, ISO/IEC C99 (including Annex F, "IEC 60559 floating-point arithmetic") : ISO/IEC C99 (including Annex F, "IEC 60559 floating-point arithmetic") remainder(3M)
Man Page