Re: Bug in Delphi SimpleRoundTo function?
- From: "Anders Isaksson" <i.rather@not>
- Date: Tue, 7 Aug 2007 16:17:08 +0200
Trevor Toms wrote:
Ask any mathematician and you'll get the same answer: 0.5 rounds up.
That I doubt. This produces a biased rounding - round a lot of positive
values and add them, and the result will consistently be larger than
the sum of the original values.
Bankers rounding is statistically unbiased - round a lot of positive
values and add them, and the result will be very much the same as the
sum of the original values.
--
Anders Isaksson, Sweden
BlockCAD: http://web.telia.com/~u16122508/proglego.htm
Gallery: http://web.telia.com/~u16122508/gallery/index.htm
.
- Follow-Ups:
- Re: Bug in Delphi SimpleRoundTo function?
- From: Trevor Toms
- Re: Bug in Delphi SimpleRoundTo function?
- References:
- Re: Bug in Delphi SimpleRoundTo function?
- From: John Herbster
- Re: Bug in Delphi SimpleRoundTo function?
- From: Trevor Toms
- Re: Bug in Delphi SimpleRoundTo function?
- Prev by Date: Re: Morfik-Comments
- Next by Date: Re: Useless or useful ?
- Previous by thread: Re: Bug in Delphi SimpleRoundTo function?
- Next by thread: Re: Bug in Delphi SimpleRoundTo function?
- Index(es):
Relevant Pages
|