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


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA