__device__ double nearbyint ( double  x  ) 

Round argument x to an integer value in double precision floating-point format.

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


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA