486 Appendix B The Standard C Library
double log10 (x)
Returns log 10 x,x ≥ 0.
long int lrint (x)
Returns xrounded to the nearest longinteger.
long long int llrint (x)
Returns xrounded to the nearest long longinteger.
long long int llround (x)
Returns the value of xrounded to the nearest long long int. Halfway values are
always rounded away from zero (so 0.5 always rounds to 1).
long int lround (x)
Returns the value of xrounded to the nearest long int. Halfway values are always
rounded away from zero (so 0.5 always rounds to 1).
double modf (x, ipart)
Extracts the fractional and integral parts of x.The fractional part is returned and the
integral part is stored in the doublepointed to by ipart.
double nan (s)
Returns a NaN, if possible, according to the content specified by the string pointed
to by s.
double nearbyint (x)
Returns the nearest integer to xin floating-point format.
double nextafter (x, y)
Returns the next representable value of xin the direction of y.
double nexttoward (x, ly)
Returns the next representable value of xin the direction of y. Similar to nextafter,
except in this case the second argument is of type long double.
double pow (x, y)
Returns xy. If xis less than zero,ymust be an integer. If xis equal to zero,ymust be
greater than zero.
double remainder (x, y)
Returns the remainder of xdivided by y.
21 0672326663 AppB 6/10/04 2:03 PM Page 486