3.148. __nv_floor
-
double @__nv_floor(double %f)
Calculate the largest integer less than or equal to
x.Calculates the largest integer value which is less than or equal to
x.Note
For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Double-Precision Floating-Point Functions section.
- Returns
Returns the largest integer value which is less than or equal to x expressed as a floating-point number.
__nv_floor( \(\pm \infty\) ) returns \(\pm \infty\).
__nv_floor( \(\pm 0\) ) returns \(\pm 0\).