3.253. __nv_nearbyintf

float @__nv_nearbyintf(float %x)

Round the input argument to the nearest integer.

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

Note

For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Single-Precision Floating-Point Functions section.

Returns

  • __nv_nearbyintf( \(\pm 0\) ) returns \(\pm 0\).

  • __nv_nearbyintf( \(\pm \infty\) ) returns \(\pm \infty\).