Good morning.
I'm looking to provide totals in a query that has some calculated fields in the following way:
If the user has entered a one-off price, use this, otherwise
calculate the value based on retail price and dealer discount
using the following type of formula:
FinalPrice: IIf(IsNull([OneOff], round([DiscountPrice],2), [OneOff])
Where I'm expecting to see a rounded version of the DiscountPrice, or the OneOff price, as explained above.
My problem is that for SOME values of OneOff, I am seeing some spurious numbers - in the query, for example, 192.06 is displayed as 192.059997558594 and 28.55 as 28.5499992370605. If I manually change 192.06 to 192, 192 is displayed in the FinalPrice column.
I appreciate that Access has issues calculating certain value for certain data types, but these are NOT calculated values - or at least they shouldn't be. Why would the query be adding these extra decimals to a non-calculated value?
Cheers,
Pete
I'm looking to provide totals in a query that has some calculated fields in the following way:
If the user has entered a one-off price, use this, otherwise
calculate the value based on retail price and dealer discount
using the following type of formula:
FinalPrice: IIf(IsNull([OneOff], round([DiscountPrice],2), [OneOff])
Where I'm expecting to see a rounded version of the DiscountPrice, or the OneOff price, as explained above.
My problem is that for SOME values of OneOff, I am seeing some spurious numbers - in the query, for example, 192.06 is displayed as 192.059997558594 and 28.55 as 28.5499992370605. If I manually change 192.06 to 192, 192 is displayed in the FinalPrice column.
I appreciate that Access has issues calculating certain value for certain data types, but these are NOT calculated values - or at least they shouldn't be. Why would the query be adding these extra decimals to a non-calculated value?
Cheers,
Pete