Date: Jan 19, 2013 8:53 AM Author: dpb Subject: Re: How to avoid wrong answers in simple arithmetic expressions. On 1/19/2013 1:04 AM, SK wrote:
> But, due to rounding error, this gives a wrong answer for example for a
> = 135.01.
> The problem does not go away even if I replace the last line by a =
> rem(a, v(i)).
> How does one avoid such issues in general?
Scaling and/or fixed point are common techniques...