What is your understanding of banker's rounding - that 5 is rounded towards
the EVEN number? $44.96 would seem to be the closest even number ot $44.955.
There are a (very) few cases where floating point numbers do not round as
you would expect. You can deal with those by explicitly typecasting to
Currency, i.e.:
Round(CCur([Price] * (1 - [Discount])), 2)
Since the Currency type cannot be Null, you may need Nz() inside CCur() as
well.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users -
http://allenbrowne.com/tips.html
"Dalan" <other@safe-mail.net> wrote in message
news:504f21f6.0309160347.2204727@posting.google.co m...[color=blue]
> Is there any code available to address currency rounding problems in
> Access 97? Apparently, selecting currency type table fields does not
> resolve the problem. For instance, in my form I have a price of item
> field (say $49.95), and a percentage discount field (say 10% = $5.00),
> and calculated net cost field of the two. Access seemingly doesn't
> understand banker's rules as the resulting total is $44.96. Could this
> be a bug? Why does it miscalculate with currency numbers?
>
> Thanks for your comments. Dalan[/color]