Calculate the floating-point remainder of x / y. The absolute value of the computed value is always less than y's absolute value and will have the same sign as x.
Returns:
Returns the floating point remainder of x / y.
fmod(, y) returns if y is not zero.
fmod(x, y) returns NaN and raised an invalid floating point exception if x is or y is zero.
fmod(x, y) returns zero if y is zero or the result would overflow.
fmod(x, ) returns x if x is finite.
fmod(x, 0) returns NaN.
Note:
For accuracy information for this function see the CUDA C Programming Guide, Appendix C, Table C-2.