Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

nearbyintl(3m) [hpux man page]

rint(3M)																  rint(3M)

NAME
rint(), rintf(), rintl(), rintw(), rintq(), nearbyint(), nearbyintf(), nearbyintl(), nearbyintw(), nearbyintq() - round to nearest integer functions SYNOPSIS
HP Integrity Server Only DESCRIPTION
and return the integer (represented as a floating-point number) nearest x according to the current rounding direction mode. These func- tions meet the requirement of the IEEE-754 standard for an operation that rounds to integer in floating-point format. The two functions are identical except that raises the inexact exception if the result differs in value from the argument, while does not. In the default rounding direction (round to nearest), is the integer nearest x with the additional stipulation that if |-x|=1/2, then is even. (The same statement applies to If the current rounding direction is toward negative infinity, and return the same value as If the current rounding direction is toward positive infinity, and return the same value as Integrity Server Only are versions of and respectively; they take a argument and return a result. and are versions of and respectively; they take a argument and return a result. and are versions of and respectively; they take an argument and return an result. and are equivalent to and respectively 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 with the option. Make sure your program includes Link in the math library by specifying on the compiler or linker command line. For more information, see the at the following site: RETURN VALUE
If x is and return x. If x is NaN, the and functions return NaN. ERRORS
No errors are defined. SEE ALSO
ceil(3M), floor(3M), fabs(3M), fmod(3M), fegetround(3M), fesetround(3M), lrint(3M), llrint(3M), lround(3M), llround(3M), round(3M), trunc(3M), math(5), fenv(5). STANDARDS CONFORMANCE
: XPG4.2, ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arithmetic'') : ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arithmetic'') rint(3M)

Check Out this Related Man Page

rint(3M)																  rint(3M)

NAME
rint(), rintf(), rintl(), rintw(), rintq(), nearbyint(), nearbyintf(), nearbyintl(), nearbyintw(), nearbyintq() - round to nearest integer functions SYNOPSIS
HP Integrity Server Only DESCRIPTION
and return the integer (represented as a floating-point number) nearest x according to the current rounding direction mode. These func- tions meet the requirement of the IEEE-754 standard for an operation that rounds to integer in floating-point format. The two functions are identical except that raises the inexact exception if the result differs in value from the argument, while does not. In the default rounding direction (round to nearest), is the integer nearest x with the additional stipulation that if |-x|=1/2, then is even. (The same statement applies to If the current rounding direction is toward negative infinity, and return the same value as If the current rounding direction is toward positive infinity, and return the same value as Integrity Server Only are versions of and respectively; they take a argument and return a result. and are versions of and respectively; they take a argument and return a result. and are versions of and respectively; they take an argument and return an result. and are equivalent to and respectively 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 with the option. Make sure your program includes Link in the math library by specifying on the compiler or linker command line. For more information, see the at the following site: RETURN VALUE
If x is and return x. If x is NaN, the and functions return NaN. ERRORS
No errors are defined. SEE ALSO
ceil(3M), floor(3M), fabs(3M), fmod(3M), fegetround(3M), fesetround(3M), lrint(3M), llrint(3M), lround(3M), llround(3M), round(3M), trunc(3M), math(5), fenv(5). STANDARDS CONFORMANCE
: XPG4.2, ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arithmetic'') : ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arithmetic'') rint(3M)
Man Page