Exponential values

G

Guest

Hi All,

I have a query that takes all of the transactions for suppliers for a period
and sums the total values of each transaction to effectively report a balance
for each supplier.

This works fine for most transactions, however when invoices and credits or
payments are for values such as 1.312, where the balance should be zero as
displayed on the account of that supplier, the query reports values such as
1.3122211 etc.

How do I get the query to ignore these types of numbers or make them zero?
 
L

Larry Daugherty

Convert results to integers. Where you know that a value greater than
zero should really be zero, you'll have to supply the smarts.

HTH
 
J

John W. Vinson

This works fine for most transactions, however when invoices and credits or
payments are for values such as 1.312, where the balance should be zero as
displayed on the account of that supplier, the query reports values such as
1.3122211 etc.

How do I get the query to ignore these types of numbers or make them zero?

Change the datatype of the field from Double or Float - which has roundoff
error - to Currency, which has four and exactly four decimals and NO roundoff
error.

You can also use the Round() function in query calculations.

John W. Vinson [MVP]
 
G

Guest

Many thanks to you both.
--
K Hogwood-Thompson


John W. Vinson said:
Change the datatype of the field from Double or Float - which has roundoff
error - to Currency, which has four and exactly four decimals and NO roundoff
error.

You can also use the Round() function in query calculations.

John W. Vinson [MVP]
 

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