Rounding off problem.

David Brown gnucash at davidb.org
Mon Mar 24 16:23:39 EDT 2008


On Mon, Mar 24, 2008 at 04:05:32PM -0400, Geoffrey wrote:

>I would expect neither.  I would expect that if rounded, it should round 
>to 20,001.00.
>
>Your first suggestion would be rounding down.  I've never seen anything 
>like your second suggestion, unless it's a typo and meant, 20,001.00.

Sorry, that was a typo.  I meant either rouding to the nearest even
integer, or rounding up when in the middle.  The problem with always
rouding the $0.50 up is that it introduces a slight bias to the result.

David


More information about the gnucash-user mailing list