I found one problem in my kernel function regarding calculation precision.
In a division calculation: 1023000 / 5000000, the result should be just 0.2046, but my kernel function get 0.2046000063419342041015625… Why is there a residual after 0.20460000?
This difference directly results in other wrong results in my following codes.
Can any one help me to correct it? Thanks