__device__ float nextafterf ( float  x,
float  y 
)

Calculate the next representable single-precision floating-point value following x in the direction of y. For example, if y is greater than x, nextafterf() returns the smallest representable number greater than x

Returns:
  • nextafterf($\pm \infty$, y) returns $\pm \infty$.
Note:
For accuracy information for this function see the CUDA C Programming Guide, Appendix C, Table C-1.


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA