HP-UX Floating-Point Guide

212 Appendix A
The C Math Library
C Math Library Tables
double round(double x); Returns x rounded to integer-valued
double-precision number, rounding
halfway cases away from zero, regardless
of the current rounding direction.
double scalb(double x, double n); Returns x*(2**n), computed efficiently.
double scalbn(double x, int n); Returns x*(2**n), computed efficiently.
int signbit(floating-type x); Returns a nonzero integer if the sign of x
is negative. Otherwise returns zero.
double sin(double x); Returns sine of x (x in radians). (Millicode
version available)
double sind(double x); Returns sine of x (x in degrees).
float sindf(float x); Returns sine of x (x in degrees).
float sinf(float x); Returns sine of x (x in radians). (Millicode
version available)
double sinh(double x); Returns hyperbolic sine of x.
float sinhf(float x); Returns hyperbolic sine of x.
double sqrt(double x); Returns nonnegative square root of x.
float sqrtf(float x); Returns nonnegative square root of x.
double tan(double x); Returns tangent of x (x in radians).
(Millicode version available)
double tand(double x); Returns tangent of x (x in degrees).
float tandf(float x); Returns tangent of x (x in degrees).
float tanf(float x); Returns tangent of x (x in radians).
(Millicode version available)
double tanh(double x); Returns hyperbolic tangent of x.
float tanhf(float x); Returns hyperbolic sine of x.
Function What It Does