HP-UX Floating-Point Guide

Appendix A 211
The C Math Library
C Math Library Tables
long lround(double x); Returns x rounded to the nearest long
value, rounding halfway cases away from
zero, regardless of the current rounding
direction.
double modf(double value,
double *iptr);
Returns signed fractional part of value;
stores integral part in the location pointed
to by iptr.
double nan(const char *tagp); Returns a quiet NaN.
double nearbyint(double x); Returns x rounded to integer-valued
double-precision number, using the
current rounding direction. Identical to
rint except that it does not raise the
inexact exception.
double nextafter(double x,
double y);
Returns the next representable neighbor
of x in the direction of y.
float nextafterf(float x,
float y);
Returns the next representable neighbor
of x in the direction of y.
double pow(double x, double y); Returns x to the power y. (Millicode
version available)
float powf(float x, float y); Returns x to the power y.
double remainder(double x,
double y);
Returns the remainder r = x n*y where n
is the integer nearest the exact value of
x/y. Implements the IEEE remainder
operation.
double remquo(double x,
double y,
int *quo);
Returns the same remainder as the
remainder function, and stores the
quotient in the object pointed to by quo.
double rint(double x); Returns x rounded to integer-valued
double-precision number, using the
current rounding direction. Raises the
inexact exception.
Function What It Does