I
ibmerlin
Guest
I am having some problems with some calculations in a query. I want to enter a number and have an Expression divide that number by 254 and then multiply the total by another feild.
TotalWT: ([GramWT]/254)*[numberofbatches]
If I were to enter 100 I should get .3937007 and if the numberofbatches is 10 then the total should be 3.9. The problem is that it seems to be rounding down the number after the division to 0 and then multiplying that by 10.
What do I need to do to get this to work?
Thanks
Merlin
TotalWT: ([GramWT]/254)*[numberofbatches]
If I were to enter 100 I should get .3937007 and if the numberofbatches is 10 then the total should be 3.9. The problem is that it seems to be rounding down the number after the division to 0 and then multiplying that by 10.
What do I need to do to get this to work?
Thanks
Merlin