gnc_numeric: fractional displays and rounding

Christian Stimming stimming at tuhh.de
Thu Aug 7 04:48:28 EDT 2008


Am Mittwoch, 6. August 2008 18:43 schrieb Charles Day:
> On Thu, Jul 31, 2008 at 5:13 PM, Charles Day <cedayiv at gmail.com> wrote:
> >> Sorry, yes, you're right. Here's a corrected second table:
> >>
> >>  round force_fit decimal  non-decimal
> >>  ===== ========= ======= =============
> >>      0         0   0.999       0 + 1/3
> >>      1         0   1.000       0 + 1/3
> >>      0         1   0.999         0.333 *a better example might be 2/3
> >> (prints as 0.666)
> >>      1         1   1.000         0.333 *a better example might be 2/3
> >> (prints as 0.667)
> >
> > While I'm at it, shall I make 1/3 print simply as "1/3" instead of "0 +
> > 1/3" in the first two cases?
>
> Can anyone confirm the intended meaning of the force_fit option? Shall I go
> ahead with these changes?

I can't confirm the *intended* meaning, but your explained meaning makes 
perfect sense to me. IMHO you can go ahead with these changes.

Regards

Christian


More information about the gnucash-devel mailing list