__device__ double modf ( double  x,
double *  iptr 
)

Break down the argument x into fractional and integral parts. The integral part is stored in the argument iptr. Fractional and integral parts are given the same sign as the argument x.

Returns:
  • modf($\pm x$, iptr) returns a result with the same sign as x.
  • modf($\pm \infty$, iptr) returns $\pm 0$ and stores $\pm \infty$ in the object pointed to by iptr.
  • modf(NaN, iptr) stores a NaN in the object pointed to by iptr and returns a NaN.
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