3.255. __nv_remainderf
原型:
float @__nv_remainderf(float %x, float %y)
描述:
计算双精度浮点余数r除以x除数y对于非零y。因此。值n是最接近的整数值。在以下情况下,选择偶数n值。
返回值
-
__nv_remainderf(x, 0) 返回 NaN。
-
__nv_remainderf( , y) 返回 NaN。
-
__nv_remainderf(x, ) 返回x对于有限的x.
注意
有关精度信息,请参阅《CUDA C++ 编程指南》的“数学函数附录”部分中的“单精度浮点函数”小节。
库可用性:
计算能力 2.0:是
计算能力 3.0:是
计算能力 3.5:是