__device__ double floor ( double  x  ) 

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

Returns:
Returns $\lfloor x \rfloor$ expressed as a floating-point number.
  • floor($\pm \infty$) returns $\pm \infty$.
  • floor($\pm 0$) returns $\pm 0$.
Note:
For accuracy information for this function see the CUDA C Programming Guide, Appendix C, Table C-2.


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA