3.252. __nv_nearbyint
-
double @__nv_nearbyint(double %x)
Round the input argument to the nearest integer.
Round argument
xto an integer value in double precision floating-point format.Note
For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Double-Precision Floating-Point Functions section.
- Returns
__nv_nearbyint( \(\pm 0\) ) returns \(\pm 0\).
__nv_nearbyint( \(\pm \infty\) ) returns \(\pm \infty\).