libm.info: nextafter

Go forward to pow
Go backward to nan
Go up to Math
Go to the top op libm

`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).