From: Gansser, Martin (MGansser_at_inneo.de)
Date: Fri Apr 02 2004 - 07:43:32 EST
the rintf() does not exists, but rint():
NAME
rint(), nearbyint() - round to nearest int function
SYNOPSIS
#include <math.h>
double rint(double x);
double nearbyint(double x);
DESCRIPTION
rint() and nearbyint() return the integer (represented as a double
precision number) nearest x according to the current rounding
direction mode. These functions 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 rint() raises the inexact
exception, while nearbyint() does not.
In the default rounding direction (round to nearest), rint(x) is the
integer nearest x with the additional stipulation that if
|rint(x)-x|=1/2, then rint(x) is even. (The same statement applies to
nearbyint(x).)
If the current rounding direction is toward negative infinity, rint()
and nearbyint() are identical to floor(). If the current rounding
direction is toward positive infinity, rint() and nearbyint() are
identical to ceil().
The ISO/ANSI C committee has approved the rint() and nearbyint()
functions for inclusion in the C9X draft standard.
To use these functions, compile either with the default -Ae option or
with the -Aa and -D_HPUX_SOURCE options. Make sure your program
includes <math.h>. Link in the math library by specifying -lm on the
compiler or linker command line.
RETURN VALUE
If x is +-INFINITY, the rint() and nearbyint() functions return
+-INFINITY respectively.
If x is NaN, the rint() and nearbyint() 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).
Hewlett-Packard Company - 1 - HP-UX Release 11.00: October 1997
rint(3M) rint(3M)
STANDARDS CONFORMANCE
rint(): XPG4.2, IEEE-754
Hewlett-Packard Company - 2 - HP-UX Release 11.00: October 1997
thanks Martin
> -----Original Message-----
> From: Marc Maurer [mailto:j.m.maurer_at_student.utwente.nl]
> Sent: Friday, April 02, 2004 2:44 PM
> To: Gansser, Martin
> Cc: abiword-dev_at_abisource.com
> Subject: Re: abiword-2.0.5: `rintf' undeclared (first use
> this function)
>
>
> Could you do "man rintf" to see if it exist on HPUX at all?
>
> If not, could you try "man rint" and see if that exists?
>
> Marc
>
>
> Op vr 02-04-2004, om 14:22 schreef Gansser, Martin:
> > Hi,
> >
> > I tried to compile abiword-2.0.5 on HPUX 11.00 with gnome-2.4,
> >
> > but it fails with the following error message:
> >
> > xap_UnixGnomePrintGraphics.cpp: In member function `virtual
> UT_uint32
> > XAP_UnixGnomePrintGraphics::measureUnRemappedChar(unsigned int)':
> > xap_UnixGnomePrintGraphics.cpp:209: (first use this
> > function)
> > xap_UnixGnomePrintGraphics.cpp:209: (Each undeclared
> identifier is reported
> > only once for each function it appears in.)
> > make[6]: *** [xap_UnixGnomePrintGraphics.o] Error 1
> >
> > have someone a idea ?
> >
> > thanks Martin
> --
> Marc Maurer <j.m.maurer_at_student.utwente.nl>
This archive was generated by hypermail 2.1.4 : Fri Apr 02 2004 - 07:45:56 EST