Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
div
eof
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

_nextafter

Returns the next representable neighbor.

double _nextafter( 
   double x, 
   double y  
);

x, y

Double-precision floating-point values.

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.

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

Routine

Required header

_nextafter

<float.h>

For more compatibility information, see Compatibility in the Introduction.

Libraries

All versions of the C run-time libraries.

Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.

Community Additions

ADD
Show:
© 2015 Microsoft