Error with sum of double type number

C

Chlaris

Hello,

I have the following table :

Table Name : tblStock

Field : Qty
Data Type : Number
Field Size : Double

The table has 4 records :

-8
-2.7
2.7
8

Run this sql statement :

SELECT Sum(tblStock.Qty) AS SumOfQty
FROM tblStock;

The query returns 8.88178419700125E-16
Actually it should be zero.

What's wrong with Double type format ?

Thanks.

Chlaris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top