Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

_nextafter

Returns next representable neighbor.

double _nextafter(
   double x,
   double y 
);

Parameters

x, y
Double-precision floating-point values.

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.

Remarks

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

Requirements

Routine Required header Compatibility
_nextafter <float.h> Win 98, Win Me, Win NT, Win 2000, Win XP

For additional compatibility information, see Compatibility in the Introduction.

Libraries

All versions of the C run-time libraries.

See Also

Floating-Point Support Routines | _isnan | Run-Time Routines and .NET Framework Equivalents

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.