Proposal for modifying gnucash to use exact quantities

Richard Wackerbarth
Tue, 25 Jul 2000 10:36:37 -0500

On Tue, 25 Jul 2000, Bill Gribble wrote:

> I definitely don't think rounding should be a default.  For most
> financial transactions, the math you're doing won't require any
> rounding/truncation at all, and for the ones that do (total-value
> computations, for example) you probably want to use RND_CEIL more
> often than you want to round; if you owe the bank a tenth of a cent,
> they'll bill you a whole cent, if I'm not mistaken (please let
> me know if I am!)

There are two different concepts here.

When counting an inventory, you don't need rounding; You don't even need your 
rational number representation.

When you are computing prices and invoice extensions, a rounding policy comes 
into play.

I would prefer to see the different policies as different function calls 
rather than a parameter to a generic function that attempts to implement all 
possible policies.