_nextafter

Returns next representable neighbor.

double_nextafter(doublex**,doubley);**

Routine Required Header Compatibility
_nextafter <float.h> Win 95, Win NT

For additional compatibility information, see Compatibility in the Introduction.

Libraries

LIBC.LIB Single thread static library, retail version
LIBCMT.LIB Multithread static library, retail version
MSVCRT.LIB Import library for MSVCRT.DLL, retail version

Return Value

If x=y, _nextafter returns x, with no exception triggered. If either x or y is a quiet NaN, then the return value is one or the other of the input NaNs.

Parameters

x, y

Double-precision floating-point values

Remarks

The _nextafter function returns the closest representable neighbor of x in the direction toward y.

Floating-Point Support Routines

See Also   _isnan