__device__ float floorf ( float  x  ) 

Calculate the largest integer value which is less than or equal to x.

Returns:
Returns $\lfloor x \rfloor$ expressed as a floating-point number.
  • floorf($\pm \infty$) returns $\pm \infty$.
  • floorf($\pm 0$) returns $\pm 0$.
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