HP-UX Floating-Point Guide

Appendix A 199
The C Math Library
C Math Library Tables
Miscellaneous Mathematical Functions (cont.)
double fdim(double x, double y); Returns positive difference between x and
y.
double floor(double x); Returns largest integral value not greater
than x.
double fmax(double x, double y); Returns maximum numeric value of its
arguments.
double fmin(double x, double y); Returns minimum numeric value of its
arguments.
double fmod(double x, double y); Returns floating-point remainder (f) of the
division of x by y, where f has the same
sign as x, such that x = iy + f for some
integer i, and |f| < |y|.
double frexp(double value,
int *eptr);
Returns fraction part of a double value;
stores exponent in the location pointed to
by eptr.
double hypot(double x, double y); Returns sqrt(x * x + y * y).
double ldexp(double value, int exp); Returns value*(2**exp).
long long llrint(double x); Returns x rounded to the nearest long
long value, using the current rounding
direction.
long long llround(double x); Returns x rounded to the nearest long
long value, rounding halfway cases away
from zero, regardless of the current
rounding direction.
long lrint(double x); Returns x rounded to the nearest long
value, using the current rounding
direction.
Function What It Does