On Tue, 17 Sep 2013 20:08:22 +0100 RW <rwmailli...@googlemail.com> wrote:
> It is a bit more complicated than I thought though. Rounding > towards zero produces sensible results for the 5.0 threshold, but it > becomes more complicated if one needs to handle threholds close to, or > below, zero and which aren't multiples of 0.1. Actually, 0.1 cannot be represented exactly in binary. It is 0.0001100110011.... in base 2. Darn computers! :) Regards, David.