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