Dear All,
I have a table T_COPA which has a field called NY_TGT with a sum of
537777667.
I created a calcuated field with formula NY_TGT*1,37/1000000. I expect it to return 736,75, but it returns 686,6.
To verify this issue, I created the following query with several calculted fields using different denominators. You can see that the fields with division calcuation are all wrong. The bigger the denominator is, the bigger the error is.
Any help or hint would be highly appreciated.
SELECT
Sum([NY_TGT]) AS NY0,
Sum(([NY_TGT]*1.37)) AS NY1,
Sum(([NY_TGT]*1.37)/1000) AS NY2,
Sum(([NY_TGT]*1.37)/10000) AS NY3,
Sum(([NY_TGT]*1.37)/100000) AS NY4,
Sum(([NY_TGT]*1.37)/1000000) AS NY5
FROM T_COPA
It returns the following value
NY0 |
537777667,0 |
NY1 |
736755403,8 |
NY2 |
736709,4 |
NY3 |
73627,3 |
NY4 |
7314,8 |
NY5 |
686,6 |
Bing