A
Andrew
I am using Access 97 and using SQL to add up a column which is a currency
field.
The answer should be 973105676.10 but it is coming out as 973105676.0999
This is almost as if the Sum command is doing its calculation using floating
point but the field is defined in the table as a currency field !
This is an example of the SQL I am using:
SELECT Sum(myfield) AS summyfield from mytable
It is adding many thousands of records but I have checked all of these and
there are *definitely* no more than 2 digits after the decimal point on all
of these records. So the rounding error must be in the calculation.
Does anyone know what is wrong here ?
Thanks
field.
The answer should be 973105676.10 but it is coming out as 973105676.0999
This is almost as if the Sum command is doing its calculation using floating
point but the field is defined in the table as a currency field !
This is an example of the SQL I am using:
SELECT Sum(myfield) AS summyfield from mytable
It is adding many thousands of records but I have checked all of these and
there are *definitely* no more than 2 digits after the decimal point on all
of these records. So the rounding error must be in the calculation.
Does anyone know what is wrong here ?
Thanks