3.169. __nv_fmodf
-
float @__nv_fmodf(float %x, float %y)
Calculate the floating-point remainder of
x/y.Calculate the floating-point remainder of
x/y. The floating-point remainder of the division operationx/ycalculated by this function is exactly the valuex - n*y, wherenisx/ywith its fractional part truncated. The computed value will have the same sign asx, and its magnitude will be less than the magnitude ofy.Note
For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Single-Precision Floating-Point Functions section.
- Returns
Returns the floating-point remainder of
x/y.__nv_fmodf( \(\pm 0\) ,
y) returns \(\pm 0\) ifyis not zero.__nv_fmodf(
x, \(\pm\infty\) ) returnsxifxis finite.__nv_fmodf(
x,y) returns NaN ifxis \(\pm \infty\) oryis zero.If either argument is NaN, NaN is returned.