What is the equivalent of the “round(floatNumber, precision)” function in the GPU?
The MSDN documentation of this CPU based function can be found @
ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.NETDEVFX.v20.en/cpref2/html/M_System_Math_Round_1_002e4a0f.htm
I could NOT find a GPU equivalent in the programming guide.
i can’t open the provided link (a strange protocol that is ;-))
however, if this round is something like round(1.23456789,2)=1.23, you could use the following standard functions: round(floatNumber*(10^precision))(10^-precision). i’m assuming, precision is static, so the example would be something like round(1.23456789100.)*0.01.