Re: Rounding??

Nicholas Lee wrote:

On Tue, Jun 12, 2001 at 09:18:03PM +0200, Kjetil Torgrim Homme wrote:
[Nicholas Lee]

  (*) In fact its an inconsistent bug, since things like 3.555 round
  correctly at all dp, but 3.375 doesnt a 2 dp.

Correct rounding is difficult.  If a value falls exactly between the
two candidates, it should choose the candidate which is _even_.

I always thought than even given that 5 is equal distance from either 0
or 10, that it was conventional to round up.  Not create some
complication even/odd thing which would certainly be annoying say in the
middle of some measure theory. ;)

An obvious place to have an option for either way.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]