Query Sum Function Decimal Precision

S

Stukmeister

I have the following query:

SELECT ProjectTime.ProjectTimeProjectTaskID,
Sum(ProjectTime.ProjectTimeActualHours) AS SumOfProjectTimeActualHours
FROM ProjectTime
GROUP BY ProjectTime.ProjectTimeProjectTaskID;

ActualHours is defined as
Field Size = Single
Format = Fixed
Decimal Places = 1

I enter one record with .4 keyed into ActualHours and when I run the sum
query I get an answer of 0.400000005960464

I know that I can round it. But why is the sum not returned as .4?
 
K

KARL DEWEY

Not only do you set the field definition but you need to set the display
format in the query, form, and report.
 

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