nint, aint, anint, usleep - Miscellaneous functions not found on all machines

SYNOPSIS

int nint(x)
double x;

double aint(x)
double x;

double anint(x)
double x;

int usleep(usec)
unsigned int usec;

DESCRIPTION

The functions described here are not found on all versions of UNIX, e.g., HP-UX.

nint returns the integer nearest to x.

anint returns the nearest whole number to x.

aint returns the nearest whole number y to x with |y| <= |x|.

usleep sleeps for a given number of microseconds, usec, or until awakened by a signal.

RETURN VALUES

Return values for nint, anint, and aint are described above. usleep always returns 0.

ERRORS

nint can generate integer overflows with undefined results.

NOTES

aint and anint are implemented using fmod.


Last Update: $Date: 1999/05/10 20:56:55 $