I have a simple query based on two fields that says
Component4 total = no of hours sleep/no of hours in bed * 100
where no of hours sleep = 9
no of hours in bed = 10
therefore component 4 total should = 90 instead it equals 89.999999
How can this be?
For all the other records the answer is correct down to the very last decimal place.
When I right click on the query for this component 4 total and change the format from general number to standard it will correctly respond to 90 but only because the numbers are being rounded up.
PS. THe numbers are definitely being stored and recalled as 9 and 10 and arent being rounded up because I inputed it as 9.0 and 10.0.
Component4 total = no of hours sleep/no of hours in bed * 100
where no of hours sleep = 9
no of hours in bed = 10
therefore component 4 total should = 90 instead it equals 89.999999
How can this be?
For all the other records the answer is correct down to the very last decimal place.
When I right click on the query for this component 4 total and change the format from general number to standard it will correctly respond to 90 but only because the numbers are being rounded up.
PS. THe numbers are definitely being stored and recalled as 9 and 10 and arent being rounded up because I inputed it as 9.0 and 10.0.