Probably you are seeing the result of using a floating point number.
Floating point number (single and double) that have decimal portions cannot
be accurately represented (just as one third cannot be accurately
represented as a decimal fraction) and there will often be a minor
difference such as this when preforming math operations.
You can use currency (which is a scaled number with four decimal places) or
you can test for a very small difference and convert that to zero.
IIF(Abs(Sum(x)) <.0000000001,0,Sum(x))
--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..
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.