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(, iptr) returns a result with the same sign as x.
modf(, iptr) returns and stores 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.