__device__ float fmodf ( float  x,
float  y 
)

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.
  • fmodf($\pm 0$, y) returns $\pm 0$ if y is not zero.
  • fmodf(x, y) returns NaN and raised an invalid floating point exception if x is $\infty$ or y is zero.
  • fmodf(x, y) returns zero if y is zero or the result would overflow.
  • fmodf(x, $\pm \infty$) returns x if x is finite.
  • fmodf(x, 0) returns 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