__device__ float nearbyintf ( float  x  ) 

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

Returns:
  • nearbyintf($\pm 0$) returns $\pm 0$.
  • nearbyintf($\pm \infty$) 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