K
Keith
I have a UnitPrice field and a Quantity field both of Single Type.
I'm totally confused and frustrated with the different results I get when I
multiply these two fields to get a TotalValue.
When I have a Quantity of 4,032,000 multiply by a Unit Price of 0.03728,
instead of getting an exact amount of 150,312.96, I get 150,312.96875.
When I tried CDbl(UnitPrice) * CDbl(Quantity), I get 150,312.963009. This is
still acceptable as I'll only keep 2 decimal points in the TotalValue. But
when I use this conversion, I had problem with another set of figures. This
time when I use a Quantity of 165,200 multiply by a UnitPrice of 1.065, I get
175,938.009453 which is wrong if I round it off to 2 decimal places.
I really hope there's help asap and really appreciate the help
Thanks & Regards,
Keith
I'm totally confused and frustrated with the different results I get when I
multiply these two fields to get a TotalValue.
When I have a Quantity of 4,032,000 multiply by a Unit Price of 0.03728,
instead of getting an exact amount of 150,312.96, I get 150,312.96875.
When I tried CDbl(UnitPrice) * CDbl(Quantity), I get 150,312.963009. This is
still acceptable as I'll only keep 2 decimal points in the TotalValue. But
when I use this conversion, I had problem with another set of figures. This
time when I use a Quantity of 165,200 multiply by a UnitPrice of 1.065, I get
175,938.009453 which is wrong if I round it off to 2 decimal places.
I really hope there's help asap and really appreciate the help
Thanks & Regards,
Keith