For some reason some of the balances in my table have values like 9.0949470E-13 (exponential values?). They're wreaking havoc. Please give me a sample of an update SQL statement that will change them to zero.
The field(s) in question is probably single or double? If so, I think what yo see is the result of errors in floating point arithmetic. For economical stuff, using the Currency datatype can give better precision. Could that be something to consider?
You both get stars! gmmastros gave me the perfect code to
find and fix the problem. And you explained the possible source and solution to avoid the issue in the future.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.