G
Gio Bacareza
I have 2 fields in a table. Field A Data Type is Currency. Field B Data Type
is Number, Field Size=Single, Format=Standard, Decimal Places=3.
When I do a query and add a calculated field, Field C = Field A x Field B,
the result is inaccurate. For Example, when Field A=2000 and Field B=0.900,
the result of the query shows Field C = 1799.99995231628.
Furthermore, when I export the query to excel, it shows Field B to be
0.899999976158142. Field A remains as 2000.
Why does Access convert the value of Field B, which was EXPLICITLY ENTERED
as 0.9 to 0.899999976158142. This is what I think is the reason the
resulting calculation gives out 1799.99995231628 instead of the exact 1800?
Is this an Access bug or what am I doing wrong?
Please help.
Thanks
is Number, Field Size=Single, Format=Standard, Decimal Places=3.
When I do a query and add a calculated field, Field C = Field A x Field B,
the result is inaccurate. For Example, when Field A=2000 and Field B=0.900,
the result of the query shows Field C = 1799.99995231628.
Furthermore, when I export the query to excel, it shows Field B to be
0.899999976158142. Field A remains as 2000.
Why does Access convert the value of Field B, which was EXPLICITLY ENTERED
as 0.9 to 0.899999976158142. This is what I think is the reason the
resulting calculation gives out 1799.99995231628 instead of the exact 1800?
Is this an Access bug or what am I doing wrong?
Please help.
Thanks