NEXTAFTER(3)

NAME
1.44 `nextafter', `nextafterf'--get next number

SYNOPSIS
     #include <math.h>
     double nextafter(double VAL, double DIR);
     float nextafterf(float VAL, float DIR);

DESCRIPTION
`nextafter' returns the double-precision floating-point number closest to VAL in the direction toward DIR. `nextafterf' performs the same operation in single precision. For example, `nextafter(0.0,1.0)' returns the smallest positive number which is representable in double precision.

RETURNS
Returns the next closest number to VAL in the direction toward DIR.

PORTABILITY
Neither `nextafter' nor `nextafterf' is required by ANSI C or by the System V Interface Definition (Issue 2).

SEE ALSO
nextafter is part of the library. The full documentation for is maintained as a Texinfo manual. If info and are properly installed at your site, the command

    info

will give you access to the complete manual.