3.246. __nv_modff
-
float @__nv_modff(float %x, float* %b)
Break down the input argument into fractional and integral parts.
Break down the argument
xinto fractional and integral parts. The integral part is stored in the argumentiptr. Fractional and integral parts are given the same sign as the argumentx.Note
For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Single-Precision Floating-Point Functions section.
- Returns
__nv_modff( \(\pm x\) ,
iptr) returns a result with the same sign asx.__nv_modff( \(\pm \infty\) ,
iptr) returns \(\pm 0\) and stores \(\pm \infty\) in the object pointed to byiptr.__nv_modff(NaN,
iptr) stores a NaN in the object pointed to byiptrand returns a NaN.